Lesson learned on event streaming at Revolut
summary
Revolut builds its own event streaming on Postgres instead of Kafka, storing events in two tables (action_events and model_events) and using Postgres LISTEN/NOTIFY for push delivery; monthly partitioning (pg_partman) keeps queries fast across ~8–9TB. Producers write to a local journal, synchronously persist to event_store, and rely on a reconciler with DB locks to retry; consumers use SQL filters on JSON payloads and deduplicate with idempotent events via unique IDs. Target latency is under 200ms and delivery is at-least-once with dedupe; initial WebSocket approach is replaced by a custom network protocol.
AI-written summary · about
chapters (10)
- 0:00Introduction and context
- 3:31Why event streaming at Revolut
- 8:30Design of the event streaming system
- 13:21Real-world use cases
- 15:33Achieving strong consistency
- 21:16Meeting system requirements
- 23:51Technologies and challenges
- 30:01Key learnings and resilience
- 33:57Monitoring and observability
- 35:00Q&A session
