Sharing the AWS architecture pattern we've settled on for custom web development projects—mainly because a few people asked after a recent client build and we figured a written breakdown would be more useful than repeating it in DMs.
The context
Most custom web development work we do for clients isn't a static site—it's an app with real backend logic, user accounts, file uploads, and some kind of admin dashboard. The stack needs to be boring and reliable more than it needs to be clever, since clients need to actually operate this long after we hand it off.
Our default architecture
Frontend (React/Next.js)
→ CloudFront (CDN)
→ S3 (static assets)
API Layer
→ API Gateway
→ Lambda (Node.js) for stateless endpoints
→ ECS/Fargate for anything needing persistent connections or longer execution
Data Layer
→ RDS (PostgreSQL) for relational data
→ S3 for file/media storage
→ ElastiCache (Redis) for session/cache layer
Auth
→ Cognito for standard auth flows
→ Custom JWT layer when the client has existing user systems to integrate with
Observability
→ CloudWatch for logs/metrics
→ X-Ray for tracing on the Lambda/API Gateway layer when debugging latency issues
Where this decision tree actually matters
Lambda vs. Fargate/ECS — this is the call that affects cost and complexity the most. Lambda works well for most CRUD-style API endpoints, but the moment there's a long-running process (report generation, batch imports, or webhook processing with retries), we move that specific piece to Fargate rather than fighting Lambda's execution time limits and cold-start behavior.
RDS vs. DynamoDB—for most client web apps, we default to RDS/Postgres since the data model is usually relational (users, orders, content, permissions), and the team maintaining it post-handoff is more likely to know SQL than single-table DynamoDB design. DynamoDB earns its place when there's a genuinely high-throughput, simple-access-pattern workload—not as a default.
Cost control—the easiest way custom web development solutions blow past budget on AWS isn't compute; it's forgetting to set up S3 lifecycle policies, CloudFront cache invalidation discipline, and RDS instance right-sizing before launch rather than after the first surprising bill.
What we'd tell anyone starting a similar build
If you're a small team scoping web development services for a client and defaulting to "just spin up an EC2 instance and run everything on it," it's worth at least evaluating the serverless-first version above—not because serverless is always better, but because for most CRUD-heavy client apps, the ops overhead reduction is worth the architectural adjustment.
Curious how others here have structured the Lambda/Fargate split for client work—specifically interested if anyone's found a cleaner rule of thumb than "move it to Fargate once it needs to run longer than a few minutes."
We build custom web development projects at Dev Technosys, and this is roughly our default AWS reference architecture going into a new client build—happy to go deeper on any layer above if useful.
Loading article