I have a situation where a database recieves information from user input, which has to send some of it's information to an external provider (in real time).
This also means problem. - External provider can be unreachable - The data can be malformed and throwed by provider - Etcetera
How would you handle this situation on best way? I see of it something like a PreAction/PostAction scenario.
1.PreAction will store in database.
2.PostAction sends the data to the external provider.
3.Some kind of provider that indicate and handle unsynced actions.
I'm just out for some sort of pseudo-code/idea of what way to go that are robust and reliable. maybe there exist some kind of usable pattern?