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

Roles and Permissions Simple Laravel Roles & Permissions
icon-eye-dark Created with Sketch. 2.711
Mail SPF Checker Package for SPF Checks
icon-eye-dark Created with Sketch. 967
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
Discountify Dynamic Discounts with Custom Conditions
icon-eye-dark Created with Sketch. 993
Laravel Config Validator Validate your Laravel App's Config
icon-eye-dark Created with Sketch. 1.193
Eloquent Filter Filter Data of Models by Query String
icon-eye-dark Created with Sketch. 2.532