Answer the question
In order to leave comments, you need to log in
What if we made an action on the API, but could not add it, for example, to the database?
Let's assume the situation:
We add some record (post, order) via API to a remote service, and we need to save some data (example ID) that the service returned. But it did not work out, because an error occurred (the database fell, a validation error). What to do in this case? In fact, as with Rollback, it will not work out, as with a database.
Scheme-example:
From ideas - write a log, notify the developer / administrator about it.
Answer the question
In order to leave comments, you need to log in
Put in a queue, and put monitoring on the queue - if not empty, then blow the bells. Well, in the log, of course. Resend queue, debug logs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question