Talk in English - US at PHP Tek 2026
View Slides: https://github.com/lotharthesavior/es-example-2/blob/master/public/presentation.pdf
Checkout the code: https://github.com/lotharthesavior/es-example-2
Short URL: https://joind.in/talk/0a892
(QR-Code (opens in new window))
Event Sourcing is a powerful architectural pattern that captures application state changes as a sequence of immutable events, enabling robust, auditable, and scalable systems. In this beginner-friendly talk, we'll demystify event sourcing and show how PHP developers can implement it effectively to solve real-world problems. We'll explore the core philosophy of event sourcing - storing "what happened" instead of "what is" - and its benefits, including complete audit trails, simplified debugging, and flexibility for future features.
Using practical PHP examples, we'll walk through a simple event-sourced system with a relational database (e.g., MySQL) in a Laravel example. Attendees will learn key concepts like event stores, aggregates, and how that causes optimized performance.
This talk is perfect for developers new to event sourcing or those curious about its practical applications in PHP. By the end, you'll have a clear understanding of how to start incorporating event sourcing into your projects, whether for e-commerce, financial systems, or complex workflows. Join us to discover how event sourcing can make your PHP applications more resilient and adaptable!
Comments
Please login to leave a comment
Thank you for the talk! I filled in a couple of gaps I had with the Spatie package (I've already put in a ticket to fix them) and clarified the concepts.
My only suggestion is to do more "show" and less "tell". Some slides would have benefited from code examples, such as the "upversioning" concept and the "events to multiple projections" concept, which requires some mental gymnastics to implement. I'm still trying to explain it to someone on my team after a year. :-)
Overall, a wonderful introduction to Event Sourcing.
A good talk, I have also seen John Congdon's take on Event Sourcing at another conference.
One thing I think was better about other versions of this talk that I've seen is that a bit more time was spent on explaining the vocabulary (Aggregator, Projection, etc.) which is not something you can ignore with Event Sourcing. I know the first time I was introduced to E.S. these terms were very confusing, and I think it would have been the same here had I not been expecting them because there wasn't a breakdown (to my knowledge) of the actual verbs in play.
Hopefully soon the CakePHP community will gain a Event Sourcing plugin as good as Spatie! (I checked, there isn't one.)
I hadn't really understood the difference between Pub/Sub and Event Sourcing before this talk. I now I have some homework to do and give this design pattern a try. I can really see some benefit that I can bring back to my team for being able to trace how changes happen over time in our system.
Probably my favorite talk of this year's conference. As someone that has used event sourcing at a previous employer, I knew some of the concepts, but the edges were a bit fuzzy. We're about to implement event sourcing at my current employer and this really solidified what steps I need to take immediately.