Event Sourcing: Traceability, Consistency, Correctness
summary
Lunar builds a new core banking platform after a Danish banking license (Aug 2019) and chooses Event Sourcing to get traceability at all levels. Implementation uses Go, Postgres JSON event store, Rabbit for messaging, Kubernetes, and a homegrown Go event library (rewritten once). Guaranteed event handling is critical so a Debezium + Kafka POC streams DB inserts to consumers. Transfers are implemented as event-sourced aggregates with external event streams, retries and idempotency; closed beta runs with 150,000 users / ~1.5M tx/month, GDPR and event migrations remain open issues.
AI-written summary · about
chapters (17)
- 0:00Intro
- 4:09Microservice Platform
- 8:01Real Bank
- 12:06Traceability
- 18:01Event Sourcing Components
- 22:16Event Sourcing Implementation
- 28:31Library Events
- 30:56Public APIs
- 33:43External Events
- 36:35Aggregate Routes
- 42:10Key takeaways
- 43:17Error handling
- 45:43Correctness
- 48:07Ordering of Events
- 49:43Challenges Learnings
- 52:41Immutable data
- 54:04Tech site
