Deployment Patterns - Choose the Best Way to Ship on AWS
Thunder provides production-ready AWS CDK construct libraries for deploying modern web applications. Choose the deployment pattern that best fits your use case.
Static
Deploy client-side SPAs and static site generators on AWS S3 with CloudFront CDN. Supports Astro, Next.js, Vite, Gatsby, React Router, and any static site generator.
Route 53 handles DNS resolution, directing users to the nearest CloudFront edge location. CloudFront serves as a global CDN, caching static assets at edge locations worldwide for low-latency delivery. S3 stores the application files as the origin, providing durable and scalable object storage.
Use Static for:
- Client-side rendered applications
- Static site generators (Astro, Next.js static export)
- Portfolio and documentation sites
- Global CDN distribution
- High-performance edge caching
Lambda
Deploy serverless APIs and backend functions on AWS Lambda with modern web frameworks like Express.js, Hono, NestJS, and Fastify. Perfect for microservices, APIs, and event-driven workloads.
Route 53 handles DNS resolution for custom domains. API Gateway manages HTTP requests, authentication, and routing. Lambda executes serverless functions with automatic scaling and pay-per-request pricing.
Use Lambda for:
- RESTful and GraphQL APIs
- Microservices and backend services
- Event-driven processing
- Lightweight workloads with variable traffic
- Pay-per-request pricing model
Fargate
Deploy containerized full-stack applications on AWS Fargate with Application Load Balancer. Supports Next.js, Nuxt, TanStack Start, SvelteKit, Astro, and any containerized application.
Route 53 handles DNS resolution for custom domains. Application Load Balancer distributes incoming traffic across multiple container instances with health checks and SSL termination. Fargate runs containerized applications without managing servers, providing automatic scaling and high availability.
Use Fargate for:
- Full-stack applications (Next.js, Nuxt)
- Server-rendered applications
- Persistent server state
- Database connections and background jobs
- Automatic scaling and high availability