DEV Community

Discussion on: Immediate Consistency in Event Sourcing

Collapse
 
barryosull profile image
Barry O Sullivan

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.

Collapse
 
merrion profile image
Merrion-Duncan Jones

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