Closed DavoodRm closed 2 years ago
If your transaction is only in ordering microservice, then you can implement uow in the Infrastructure layer. But if transactions need to touch several microservices then things are going to complicate more, so we can apply a saga pattern.
hi How do I create a transaction in the handle? Given that OrderDbContext is in the Infrastructure layer. Transactions can be managed using Behaviours, but I do not have access to Infrastructure in the application layer