What service(s) do you recommend for running Simple full-stack app? What costs can we expect?

0

Hello, we have a full-stack app that we would like to run on AWS. This is a React frontend, node backend and a Postgres db. We've got docker images for the front and back and a docker-compose to run everything together. Can anybody with a similar app setup please provide some input on the particular AWS services they use to host and run the containers and associated costs the incur? EC2? Fargate?

We are trying to gauge what services and what size are necessary if traffic to the site is 1k visitors / month, 10k visitors / month, 100k visitors a month. The site itself is pretty straightforward...a simple management application with only a handful of models.

Any input and direction would be greatly appreciated!

asked 2 years ago380 views
1 Answer
0

Hi, as i understand you have a docker container for the backend with the business logic, accessing Postgres, and providing some kind of API (REST, GraphQL, etc.) to the frontend. For the frontend itself, you also have docker container which just serves the static assets to the client. Just Client Side Rendering or also Server Side Rendering?

If you do not know the traffic to the site yet, or expect fluctuating requests, and want to keep costs low, i would suggest to look into AWS Lambda for your backend business logic, API Gateway or AWS AppSync for the API Layer, and Aurora Serverless v2 for Postgres, and Amazon Cloudfront as the CDN serving the static assets directly from S3. There is also a quite generous Free Tier for most of the mentioned services. This setup scales very well, performance wise and operation wise.

An alternative approach could be AWS Amplify Hosting, which also comes with an integrated CI/CD Pipeline.

Here are some sample architecture patterns. Some parts shown are optional which you may not need, for example the Lambda Authorizer, Route53, Certificate Manager, Cognito, ElastiCache, and instead of DynamoDB you can use Aurora Serverless Postgres for instance.

I think the "Single Page Application" is closest to what you are asking for: Single Page Application Sample Architecture

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions