Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Ecommerce Order Fullfilment Compensating Transaction Pattern

Pragya Keshap answered on February 3, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Ecommerce Order Fullfilment Compensating Transaction Pattern

0

Here is an example of how the SAGA pattern could be used in an e-commerce order fulfillment process to handle a rollback scenario:

The customer places an order on the e-commerce website and provides their payment information.

The website’s order fulfillment microservice begins a local transaction and sends a request to the inventory microservice, asking it to reserve the items in the customer’s order.

The inventory microservice begins a local transaction and reserves the items in the customer’s order.

The inventory microservice sends a response back to the order fulfillment microservice, indicating that the items were reserved successfully.

The order fulfillment microservice receives the response from the inventory microservice and, assuming everything went as planned, it charges the customer’s payment method and commits its own local transaction.

https://medium.com/design-microservices-architecture-with-patterns/saga-pattern-for-microservices-distributed-transactions-7e95d0613345

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Feb 03 2023
Pragya Keshap
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.