Working with EventStore in Cashflow management system
summary
Uses RailsEventStore to turn every open‑banking webhook into a technical event stored and replayable, responding quickly via Sidekiq while processing asynchronously. Order problems force a small bank_account aggregate that enforces external_provider_timestamp and closed status; missing close events caused a direct DB delete bug and required a replay. Finds 700 pending transactions stuck, fixes a soft‑delete bug introduced by acts_as_paranoid, replays events to recover data, builds a transaction‑classification aggregate and process managers, and completes a production rewrite in about six work days.
AI-written summary · about
chapters (12)
- 0:00Introduction to EventStore
- 2:08Open banking provider webhooks
- 7:07Startup code architecture challenges
- 12:29Bank account closure bug
- 17:02Pending transactions sync issue
- 20:30Transaction classification rules
- 33:12Event-driven CRUD hybrid
- 36:44User feedback via events
- 37:05Debugging orphaned users
- 39:53Sign-up process insights
- 42:01Pragmatic event sourcing advice
- 45:28Q&A and closing remarks
