~/talk

Eventsourcing - From Zero to Working Prototype

Talkat Web Summer Camp 2022 · 2022-09-01..09-02· [php, software-architecture]
slides:none on file

Demos a working eventsourcing prototype built with PHP 8.1, Composer, Docker and SQLite event store that records immutable domain events (temperature recorded → insert-only) and projects them into read models. Implements projections (last and average temperature), a simple command bus and policies that emit a send-alert command when temperature < 0; optimistic locking uses an aggregate_id+version unique index so concurrent updates fail safely. Uses PSL/Valinor for typed mapping and Doctrine migrations for schema; example scripts run end-to-end in the workshop.

AI-written summary · about

  1. 0:00Introduction to event sourcing
  2. 1:09Traditional data mutation vs event sourcing
  3. 10:45Event store and CQRS basics
  4. 25:13Domain events explained
  5. 31:56Exercise 1: Record temperature event
  6. 1:11:54Projections and read models
  7. 1:38:21Exercise 3: Average temperature projection
  8. 2:01:29Policies and command handling
  9. 2:15:56Exercise 4: Temperature alert policy
  10. 2:30:12Aggregates and state machines
  11. 2:40:08Exercise 5: Payment aggregate
  12. 2:57:13Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.