0

I have a basic question related to any micro service:

This is the architecture for my micro-services:

order-service <-----kafka----> payment-service

I am using outbox-pattern with saga.

My question is:

  1. What if order_service crashes just after persisting order in db and before publishing event ?

  2. What if order_service crashes just after publishing event and before sending response to user ?

How can we detect these cases and handle them, please shed some light.

0 Answers0