July 2017
Intermediate to advanced
414 pages
11h 18m
English
The ideal scenario is to use local transactions within a microservice, if required, and to completely avoid distributed transactions. There could be scenarios where, at the end of the execution of one service, we may want to send a message to another microservice. For example, say a tour reservation has a wheelchair request. Once the reservation is successful, we will have to send a message for wheelchair booking to another microservice that handles ancillary bookings. The reservation request itself will run on a local transaction. If sending this message fails, we are still in the transaction boundary, and we can roll back the entire transaction. What if we create the reservation and send the message, but ...
Read now
Unlock full access