How to implement with existing data / legacy applications? #323
-
Was wondering if anyone could shed some light on how I would implement event sourcing with existing data. Allow me to elaborate. I currently have a client project that focuses on scheduling employees to different locations. They have existing scheduling data that I have imported into the application. The application itself is finished, but I would like to now refactor to use event sourcing in order to keep track of employees scheduling hours which will be used in payroll calculation. I have event sourcing working for new events, but how would I generate stored events for the data that already exist? I thought about perhaps creating a command that fires an event for each database entry that I wish to capture, but how would I do that without actually recreating the entry itself? Am I maybe looking at this all wrong? Any advice would be greatly appreciated. P.S: New to event sourcing. First timer! Be gentle. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We've created an entire course on this subject. You might find it helpful: https://event-sourcing-laravel.com |
Beta Was this translation helpful? Give feedback.
We've created an entire course on this subject. You might find it helpful: https://event-sourcing-laravel.com