Cascadiq

Event Sourcing Mini

project · Level 3 · 50 min

Description

Implement a minimal event-sourced counter or todo list: append events (e.g. Incremented, ItemAdded), and derive current state by replaying events.

Requirements

  • appendEvent(event)
  • getState() -> derived by reducing events
  • Events are immutable; state is not stored directly

Constraints

In-memory event log. Focus on the pattern.

Deliverables

Event types, append, and reduce logic.

Tags

ArchitectureEvent Sourcing