How to run NET 6 Service in AWS?

0

A potential customer has a working RDS PostgreSQL database and legacy WinForms client applications. All work fine. But now they want to re-make the system. The idea is: new Client-> new AWS based service ()->existing RDS I suggested to develop the service as NET 6/7 Service. My question: How can I publish the service to AWS? Can it work with the existing RDS?

Oleg
질문됨 일 년 전366회 조회
1개 답변
0

There are several hosting options for .NET 6 on AWS, first you can use IIS on EC2 Windows or use AWS Elastic Beanstalk without defining RDS as part of the stack so it would use the existing RDS instance. Another option is to use AWS App Runner to host your code inside a container. If you containerize your .NET 6/7 code then you can also use ECS or EKS and finally therer are ways to create a .NET service using AWS Lambda function and API Gateway. In any case using the existing RDS instance is possible by using Npgsql with/without entity framework core and making sure that your service is able to reach the DB.

profile pictureAWS
답변함 일 년 전
  • Thank you. About the 3rd way: what connection string should I use in Lambda NET to connect RDS? Can it be the same as I use now in my WinForms local app: server, db, user, password?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠