I hadn't thought of that solution. Would the id generator be sent a
command to generate an id -> a BookingIdGeneratedEvent getting
published for the booking guid -> read store updating the already
created Booking record? I like that solution.
The requirement on the business end is that an id is used to track the
inmate within a facility (jail or prison) via arm band. They also
reference this number throughout the facility and print them on
clothing, etc. A guid is not something they want to deal with in that
way and systems they are used to using use simple sequential integer
identifiers.
On Dec 22, 1:50 am, Scott Reynolds <
sco...@reynoldsphotography.com>
wrote:
> This is exactly what we do. our command handler gets a sequential from our
> id generator. All domain interactions however continue to use guids but the
> client has a nice domain controlled id to look at.