Going Serverless with GraphQL
summary
Bustle moves nearly all production to AWS Lambda + API Gateway, reaching ~60 million monthly uniques and shrinking one metrics pipeline from ~$2,500/month to ~$400/month. Architecture uses Redis as primary store (connection limits and cold containers cause surprises), account concurrency defaults (100) and 5-minute Lambda timeouts force design changes, and testing/observability are hard. GraphQL sits on Lambda with DataLoader, GraphQL mutations for importing acquired Elite Daily data, and Relay for pagination and client patterns.
AI-written summary · about
chapters (34)
- 0:00Intro
- 1:21The Hitchhiker's Guide to Serverless
- 2:36100% serverless
- 3:18there are still servers...
- 3:42servers platforms!
- 4:27business logic?
- 5:43servers platforms events!
- 7:24One API endpoint
- 8:24lambda api gateway ~$400/mo
- 8:53scales magically
- 10:01cold functions
- 10:35min max
- 10:46testing
- 11:33serverless framework node-lambda apex sparta
- 12:04Shep
- 12:17The Lambda Front End
- 13:39All In!
- 14:25Pop Quiz: Default max # of redis connections
- 15:25account level concurrency limit
- 16:15metrics security observability exception reporting
- 18:47Give me a vehicle
- 19:08Give me a car. With 6 seats. That is red. And has a bike rack. Include the bikes. Mountain Bikes. With tires.
- 21:23field resolution
- 21:37type User id: ID name: String url: String image: String
- 22:23data loader
- 24:07pagination clientMutationId partial data fetching mutation structure
- 25:35hint: use relay
- 26:12query complexity
- 27:29Facebook Monoculture
- 27:45Are facebook's problems your problems?
- 30:20Approaches...
- 30:43Read through Copy on Read/Write Dual Writes Replace
- 31:323. Import data with mutations
- 32:39Recap!
related talks
31mFullstack Serverless at Scale
20mScaling GraphQL on AWS: Production Architecture for High-Volume Data Systems
17mBuild cost effective Asynchronous GraphQL APIs using Serverless.
42mServerless Tales from the Trenches
28mWe Live in Memory: Making Λ and GraphQL Respond in 70MS
29mDeploying GraphQL in a Serverless Context
23mFrom 1 to 101 Lambda Functions in Production: Evolving a Serverless Architecture–Slobodan Stojanovic
36mDeveloping Serverless Applications with GraphQL
