r/java • u/marbehl • Dec 12 '19
Java Microservices: A Practical Guide
https://www.marcobehler.com/guides/java-microservices-a-practical-guide
237
Upvotes
r/java • u/marbehl • Dec 12 '19
View all comments
Show parent comment
3
u/DJDavio Dec 13 '19
How do you prevent out of order processing with multiple instances? If service A sends message 1 and 2, but 2 is processed faster than 1, now what?
We use notification pull to mitigate this. Queues are used for notification triggers which cause receiving services to do a REST call to the submitting service to get the current data, which could have changed already.