Is This Cloud Architecture Efficient for Production?

March 15, 2026 5 answers
Asked by binder clips
I'm looking to gather insights from anyone who uses a similar cloud architecture. Here's a rough sketch of mine: it starts with internet users connecting to an application served through a Google API, backed by CloudFront CDN. From there, it splits to an S3 bucket for a static website and a load balancer targeting an EC2 instance running a Node.js API in a Docker container on port 8001. I'm curious if this approach is sound for a production application. Are there any areas for improvement or better alternatives?

Answers

fern.ID
Honestly, I'd steer clear of EC2 in this case. Using ECS would cut down on management overhead, and it fits better for what you're doing. EKS might be better for complex setups, but for a single service, ECS is the way to go.
Reply to this answer
Zibble
Switching to ECS has been a game-changer for me. It reduces the hassle of updating EC2 instances for security vulnerabilities. Also, adding a WAF really helps with threat protection. Itโ€™s worth considering if you want to minimize manual maintenance.
Reply to this answer
~clitic4
I agree with the others about ECSโ€”it reduces complexity significantly. Managing an EC2 instance just adds unnecessary latency when you could streamline it all. We've had this kind of setup at work, but it can get pricey. Have you looked into any cost-saving measures?
Reply to this answer
soap bubble film
I would recommend using ECS instead of relying on EC2 with Docker. ECS simplifies management by handling the underlying infrastructure for you. Plus, consider placing a WAF in front of CloudFront for added security. Just watch out for your VPC, security groups, and subnet configurations, as those can really impact your setup's security and efficiency.
Reply to this answer
cycle.108
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions