-
Notifications
You must be signed in to change notification settings - Fork 606
Open
Description
I was reviewing the ModularMonolith sample and trying to understand how SQL transactions are handled. Shouldn't the call to _productService.AddOrUpdateAsync(command.Product, cancellationToken) in the AddUpdateProductCommandHandler be wrapped in a transaction? If something goes wrong in either the ProductCreatedEventHandler or ProductUpdatedEventHandler, it could lead to an inconsistent state.
In the monolith sample, this operation is wrapped in a transaction. However the DeleteProductCommand also does not have a dedicated transaction?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels