You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
In Chapter 9 we need a Temporary Ugly Hack: The Message Bus Has to Return Results.
That's fine, since that's "solved" by CQRS in Chapter 12. However, what concerns me is: where should ids be handled?. Generically at a "system" level or at "Domain Model" level?
In one of the examples, more or less, this is what is done:
And this is kinda fine, since we would probably be getting the order_id from a view with CQRS. But how about creation of new objects? Where should the "id logic" be put?
# Creating new "Thing"new_thing_id=123# the logic is either here or "lost", unless we return from the message bus 🤔api_client.post_to_create_new_thing(new_thing_id)
Hello!
In Chapter 9 we need a Temporary Ugly Hack: The Message Bus Has to Return Results.
That's fine, since that's "solved" by CQRS in Chapter 12. However, what concerns me is: where should ids be handled?. Generically at a "system" level or at "Domain Model" level?
In one of the examples, more or less, this is what is done:
And this is kinda fine, since we would probably be getting the
order_id
from a view with CQRS. But how about creation of new objects? Where should the "id logic" be put?This is somehow related to #299 too.
The text was updated successfully, but these errors were encountered: