Reputation: 113
This is an interview question - what to do when ActiveMQ's queue is full in productive environment?
Should the next messages be discarded; or should I implement a buffer myself or store it in DB?
I want to know the general solution in real productive environment.
Upvotes: 1
Views: 103
Reputation: 140427
The simple answer is: it depends.
On your requirements. Which we can't know. You have to understand which of the various approaches meets the businesses goals of your application.
In other words: there can't be a a general answer. If you are measuring clicks on some web page, it might not be a big deal to loose one. But when we are talking about an order from a customer you better make sure to never forget about a single one.
Upvotes: 3