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
Hi, thank you for the book. Just reading through the chapters.
In the book it was mentioned that there is a possibility that we end up with 3+ wishes in a rare case of parallel requests, although the business rule states there shouldn't be more than 3 wishes.
By moving the business logic to the user domain entity we do keep the logic in the domain which seems correct, but does it solve the problem above?
Also if the problem is to be solved somehow at the persistence layer, there the issue does not seem obvious without looking at the domain logic?
Hi, thank you for the book. Just reading through the chapters.
In the book it was mentioned that there is a possibility that we end up with 3+ wishes in a rare case of parallel requests, although the business rule states there shouldn't be more than 3 wishes.
By moving the business logic to the user domain entity we do keep the logic in the domain which seems correct, but does it solve the problem above?
Also if the problem is to be solved somehow at the persistence layer, there the issue does not seem obvious without looking at the domain logic?
Maybe I'm missing something :)
https://github.com/dddinphp/last-wishes/blob/47cf7c5950734d8d90cd405432d5d20b2c897df3/src/Lw/Application/Service/Wish/AggregateVersion/AddWishService.php#L15
The text was updated successfully, but these errors were encountered: