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 SOAP Laravel Soap Client
icon-eye-dark Created with Sketch. 3.072
Orbit Flat-file Database Driver for Eloquent
icon-eye-dark Created with Sketch. 771
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Lines CLI Tool for PHP Project Analysis
icon-eye-dark Created with Sketch. 83
Laravel Kafka Kafka Driver for Laravel
icon-eye-dark Created with Sketch. 1.104