Build cost effective Asynchronous GraphQL APIs using Serverless.
summary
Event-driven serverless API that uses AWS Lambda behind API Gateway to run a GraphQL endpoint, with SQS-driven workers updating DynamoDB and OpenSearch asynchronously so resolvers read from OpenSearch for faceted make/model queries and from DynamoDB by VIN for single-item reads. Uses infrastructure-as-code, real API integrations pushed as events, and fallback realtime calls when caches miss. Migration from a Scala EC2 monolith to this pattern yields about 70% cost reduction while improving responsiveness.
AI-written summary · about
chapters (7)
- 0:00Intro to async GraphQL APIs
- 2:55Traditional backend problems
- 6:05Monolith to event-driven
- 8:35Async event benefits
- 10:45Architecture overview
- 13:18GraphQL resolver & SQS
- 15:24Cost & performance gains
related talks
29mDeploying GraphQL in a Serverless Context
36mDeveloping Serverless Applications with GraphQL
34mGoing Serverless with GraphQL
36mEfficient and Performant GraphQL Serverless APIs
39mBuilding serverless applications with GraphQL
44mHow to build a social network entirely on serverless
29mBuilding a Serverless GraphQL Subscription Gateway for Event-Driven Architectures
29mWhy your next serverless project should use AppSync
