Let's build the worst Event Sourcing system
summary
A project intentionally uses PostgreSQL for reads but publishes events to Kafka and only writes the canonical stream back from consumers, causing regular eventual consistency gaps and duplicate money entries when retries replay non-idempotent handlers. It treats Kafka like an event store despite Kafka’s 200,000 partitions limit and per-partition ordering, shows how partitioning mistakes break ordering, and demonstrates long-lived streams, snapshot tradeoffs and idempotency failures; proposes lifecycle slicing like closing the books to keep streams manageable.
AI-written summary · about
chapters (11)
- 0:00Introduction and team
- 3:49First architecture idea
- 8:49Idempotency and pitfalls
- 10:35Event ordering challenges
- 14:27Event sourcing vs streaming
- 23:51Product vision and chaos
- 28:09Microservice architecture fail
- 33:07Distributed monolith
- 37:17Long living streams
- 45:57Why worst systems fail
- 48:04Conclusion and Q&A
