made with Laravel

Laravel Event Sourcing

Event Sourcing for Artisans

Visit Site

Description

Event Sourcing for Artisans

"Event sourcing is to data what Git is to code. Most applications only have their current state stored in a database. A lot of useful information gets lost: you don't know how the application got to this state.

Event sourcing tries to solve this problem by storing all events that happen in your app. The state of your application is built by listening to those events. An aggregate is used to validate if a new event is allowed to get written and to make decisions based on the past. Projectors are used to transform newly written events into a format useful for consumption in your app.

It might be a good choice for your project if:

  • your app needs to make decisions based on the past
  • your app has auditing requirements: the reason why your app is in a certain state is equally as important as the state itself
  • you foresee that there will be a reporting need in the future, but you don't know yet which data you need to collect for those reports

This package aims to be the entry point to get started with event sourcing in Laravel. It can help you with setting up aggregates, projectors, and reactors."


Creator

Spatie
@spatie_be


Social Media Links

Laravel Auto Hard Deleter Auto Hard Deleter for Laravel & Lumen
icon-eye-dark Created with Sketch. 948
Laravel mPDF Generate PDFs with mPDF
icon-eye-dark Created with Sketch. 14.384
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Laravel Notify Flash Notifications
icon-eye-dark Created with Sketch. 17.686
Laravel Log Alarm Real-time Log Alarm & Error Detection
icon-eye-dark Created with Sketch. 1.180