Single Lambda + Cloudflare Cache (Recommended)
Request Flow
Browser → Cloudflare (Access + CDN cache)
↓ cache miss
→ Lambda Function URL (single entry point)
├── /api/* → channel bridge → handler process
└── /* → read from file store (Aurora) → serve
↑ Cache-Control headers → Cloudflare caches static
Pros
- Simplest infra — one Lambda, no S3 sync
- Scales to zero, no long-lived service
- File store is single source of truth
- Cloudflare cache handles the read load
Cons
- Cache miss = Lambda + Aurora round trip
- Cold start latency (~200-500ms)
- Need cache purge on file update