~/talk

Event Sourcing with Laravel

TalkinItalianat laravelday 2023 · on Thursday, 2023-11-09· [php, laravel]
slides:none on file

Shows how to implement Event Sourcing and CQRS in Laravel using Spatie’s laravel-event-sourcing package by building an e-commerce demo: commands to aggregate roots produce events stored in a stored_events table, projectors/Reactors update denormalized product and order views, and full replay is supported after dropping views. Setup uses Artisan, migrations and snapshots; the repository (779 stars, 116 contributors) is used in the demo, which registers products, processes purchases, and triggers notifications.

AI-written summary · about

  1. 0:00Event Sourcing intro
  2. 1:12Who knows Event Sourcing?
  3. 3:56Classic system problems
  4. 5:04How Event Sourcing works
  5. 11:31Key Event Sourcing components
  6. 14:04Laravel library intro
  7. 14:45Command and aggregate
  8. 18:03Model and projection
  9. 19:50Reactors and automation
  10. 22:39Live demo: purchase
  11. 27:16Q&A
  12. 31:56Runtime event handling
  13. 34:08Model changes over time
  14. 36:55Payload limits
  15. 39:26Conclusion
~/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.