~/talk

Adding Event Sourcing to an existing PHP project (for the right reasons)

TalkinItalianat SymfonyDay 2018 · 2018-10-18..10-19· [php]
slides:none on file

Shows how to add event sourcing to an existing Symfony/PHP codebase by storing events as MongoDB documents with four fields (type, family, payload, metadata), using Symfony events as command hooks, and queuing writes through RabbitMQ to avoid blocking. Describes a runner+projection+executor pipeline that replays millions of events into projection pipelines, with delayed writes via a RabbitMQ queue, cron-driven runs every 5 minutes (~4.5 minute run windows), and short-lived processes to mitigate memory leaks in the PHP MongoDB extension.

AI-written summary · about

  1. 0:00Talk introduction
  2. 1:03What is Event Sourcing
  3. 4:15Event Sourcing vs CQRS
  4. 6:26Adding Event Sourcing to existing
  5. 8:11FPN project context
  6. 11:42Event Sourcing with MongoDB
  7. 20:12Event projections and aggregation
  8. 27:13Event processing logic
  9. 31:04Stateless architecture robustness
  10. 32:07Technical issues and solutions
  11. 35:38Event Sourcing benefits
  12. 38:26Projection reuse and reports
  13. 40:10Maintenance and debugging benefits
  14. 40:32Symfony Event Sourcing bundle
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.