--- title: Hosting Architecture Patterns description: AWS CDK Construct Libraries that provide simple configuration to deploy modern web apps. --- import LambdaArchitecture from '@/components/docs/patterns/LambdaArchitecture.astro'; import StaticArchitecture from '@/components/docs/patterns/StaticArchitecture.astro'; import FargateArchitecture from '@/components/docs/patterns/FargateArchitecture.astro'; import ServerlessArchitecture from '@/components/docs/patterns/ServerlessArchitecture.astro'; 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. **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 [Learn more →](/docs/patterns/static) --- ## 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. **Use Lambda for:** - RESTful and GraphQL APIs - Microservices and backend services - Event-driven processing - Lightweight workloads with variable traffic - Pay-per-request pricing model [Learn more →](/docs/patterns/lambda) --- ## 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. **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 [Learn more →](/docs/patterns/fargate) --- ## Serverless Fullstack Deploy full-stack SSR frameworks using Lambda for server-side rendering, S3 for static assets, and CloudFront as the global CDN. Supports Nuxt, Astro, TanStack Start, SvelteKit, Solid Start, and AnalogJS. **Use Serverless for:** - Server-side rendered applications - Full-stack frameworks (Nuxt, Astro, SvelteKit) - API routes and server functions - Scales to zero with pay-per-request pricing - Global edge distribution [Learn more →](/docs/patterns/serverless)