Event Sourcing in a Serverless World
summary
Shows that naive single-instance serverless subscriptions on Cloud Run break ordering and spawn duplicates under autoscale, so a single-process projector fails in practice. Builds a gRPC connector sidecar that calls serverless projector functions, stores checkpoints, enforces partitioning and linearized delivery, and projects thousands of events in about a minute in the demo. Partitioning to 10 shards roughly halves processing time. Presents practical trade-offs, tooling (EventStore, MongoDB, Cloud Run/GCP), and an exactly-once-ish checkpointing design that works.
AI-written summary · about
chapters (12)
- 0:00The case for serverless
- 1:32Serverless concepts
- 7:17Event sourcing workflow
- 10:05Demo: Cloud run setup
- 12:55Handling projections
- 17:18Kubernetes vs serverless
- 20:55Debugging scaling issues
- 23:56Deconstructing architectures
- 25:56Cloud provider options
- 29:49High availability strategies
- 35:59Demo: Connector patterns
- 44:57Implementation details
