Event-driven architecture, software seams and state machines, oh my!
summary
Built a working AlfiePay prototype in three months that processes petrol drive‑offs using event-driven patterns and a centralized state machine. Integration stack: Aura monolith events (Azure Event Grid), Stripe payments, Twilio SMS, SFTP flat files to government, and physical letters. Uses event notification vs event‑carried state transfer deliberately, implements retries/poison‑queue thinking, and encodes the debt lifecycle with the Stateless state machine in .NET so services stay decoupled and the prototype actually ships.
AI-written summary · about
chapters (9)
- 0:00Introduction and background
- 3:00Problem constraints and Alfie Pay
- 5:47Importance of software boundaries
- 8:34Understanding events and types
- 13:48Event notification pattern
- 15:11Event carried state transfer
- 17:37Alfie Pay architecture and integrations
- 20:26Software seams and state machines
- 23:58Conclusion and key takeaways
