Hello,
I am working on a monolith strangulation strategy.
The monolith uses many mysql tables with Integer ids.
For the migration of the first domain, a little group of tables has identified like an aggregate for the v2 platform.
Problem: the integer id of the aggregate is referenced many times from other tables, I need to keep this id and deal with it in the v2 platform.
In my v2 POC, I have a command model with a mysql counter in order to reserve an integer Id before apply the event creation (while the command handling).
The command creation return the UUID, I need to return also the integer, for referencing in the v1 platform.
What is the cleaner way to do this ?
Thank you,
Have a nice year.