DEV Community

Discussion on: A Deconstruction of CQRS

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

Thanks a lot for the explanation. You answered my question in 100%. I'll do my best to make more clear question next time :)

I've heard that in DDD there could be a dedicated service which is responsible for ID creation.

Thanks a lot for your replay.

Thread Thread
 
kspeakman profile image
Kasey Speakman • Edited

No worries. It seems I did understand your questions after all. :)

There are many strategies for ID generation, including ones where an ID server is employed. With UUIDs, there is no extra infrastructure needed. However, (although it is extremely unlikely) it is still possible to have UUID collisions. For me the trade-off is well worth making, but it depends on the situation.

Thread Thread
 
rafalpienkowski profile image
Rafal Pienkowski

Yes, you did :)