re: Immediate Consistency in Event Sourcing VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Another way to do this is to have a pre-populated set of unique identifiers (per category) in a FIFO queue and just have the book creation command ...
 

I hadn't thought of that. There's nothing in the constraint that says the number can't be generated before the book. A queue is a really nice solution to that problem.

 

The prepopulated queue of unique ids is a good solution for massively distributed systems as you can split the queue by region.

code of conduct - report abuse