AI summary by TwinMind
The REAL Cost Of AWS (And How To Avoid It)
Theo - t3․gg
8m 32s
Free Tier Generosity
- Services recommended have "disgustingly generous" free tiers
- Never shipped service that doesn't fit within Vercel's free tier
- PlanetScale free tier specifics:
- 1 billion row reads/month
- 10 million row writes/month
- $30/month plan: 100 billion reads, 50 million writes
- Overage costs: $1 per billion reads, $1.50 per million writes
- PlanetScale pricing model based on database count, not reads/writes
- Cost savings passed to customers due to enterprise revenue focus
- Technical wins scaled with developer experience on top
Authentication Service Pricing (Clerk)
- Similar pricing to professional solutions (Auth0)
- Free tier: unlimited sign-ins, up to 5,000 monthly active users (no credit card)
- Hobby tier: $25/month
- 2 cents per additional user
- Business tier: 5 cents per additional user (additional features)
- Employee dashboard access: $20 initial cost per additional employee
- Environment variables can be shared instead
Engineer Time Value Analysis
- Engineers undervalue their own time
- AWS setup problems consume significant time:
- CI/CD setup
- Database connections
- PG bouncer configuration for serverless traffic
- AppSync/Amplify troubleshooting
- GitHub CI/CD integration
- Personal experience: "hundreds upon hundreds of hours" lost
- Company cost analysis: engineer salary ($200k/year) vs service savings ($100/month)
- Complex setups create job security but maintenance burden
- Engineer time better spent on business differentiators vs cost optimization
Line of Prime Concept
- Point where service becomes stable enough in feature set and traffic
- Makes sense to rewrite in self-hosted solution for cost minimization
- Most companies/developers far from this point
- Code constantly changing increases cost of change
- Majority of companies: more expensive to build vs buy developer experience
Actual Cost Savings from Services
Scale-to-Zero Benefits
- No payment for unused compute
- Kubernetes/Terraform can minimize unused compute but servers still run continuously
- Usage-based billing vs server-first billing
- Payment occurs when users actually use service
- Easier cost scaling based on application usage
Compute Optimization Features
- Vercel cache primitives and incremental static regeneration
- Server computation only when content changes
- PlanetScale database.js package:
- HTTP endpoint access vs SQL connections
- Eliminates need for connection pools/bouncers
- Edge function compatibility
Edge Function Economics
- Vercel edge pricing (Pro tier): $0.65 per million invocations
- Functions only run when cache misses occur
- Cache invalidation only on user requests/specific interactions
- Cached responses dramatically cheaper than server processing every request
- CDN/caching setup complexity handled by service providers
Service Recommendations Rationale
- T3 deploy partners mentioned: Vercel, PlanetScale, Clerk, Axiom, Upstash
- No payment for video endorsement
- Services recommended before sponsorship relationships
- Benefits: saved time, money, energy at every scale
- Faster development of right solutions for users
