3 ms·
The correct solution is to make this event based and not sequential. You have service A that checks if it needs to send an email. Service B submits a value to
by theshrike79 5y ago
The correct solution is to make this event based and not sequential.
You have service A that checks if it needs to send an email.
Service B submits a value to DB and adds a task to the email system inside a transaction. If the DB is down, the service will retry later. If the email service isn't responding, it can roll back the DB change.