Event Sourcing and Actor model in Ruby
summary
A tiny donations app demonstrates two Ruby toolkits: Sidereal (Falcon + SSE + Data Star) to run a single-command runtime with browser pages that subscribe to published commands, and Sourced for event sourcing with commands as typed structs, events, deciders, projectors and reactions. The runtime uses fibers to claim and run commands, correlates command→event for full workflow tracing, supports real‑time multiplayer UIs, durable execution and replayable projections, and runs on SQLite/Postgres; demos include payment flow, chat with Ruby LLM, seat‑booking and a rebuildable projection dashboard.
AI-written summary · about
chapters (13)
- 0:00Introduction and concepts
- 2:48Domain modeling challenges
- 5:48Execution context and workflows
- 9:53The Sidereal toolkit
- 13:49Architecture and UI integration
- 19:05Real-time demo applications
- 21:24Event sourcing fundamentals
- 24:12The Sourced library model
- 28:46Decision-making and testing
- 31:48Projections and state management
- 34:41Practical benefits of the pattern
- 39:05Autonomy and durable execution
- 43:34Q&A and closing remarks
