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:
What if order_service crashes just after persisting order in db and before publishing event ?
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.