I have process which reads temporary queue. The idea that it gets message by correlation id.
It works fine, if the queue contains less than 50000 messages.
If it contains more messages, the process can take till 10000 seconds.
And this is not good. You understand me
Does hornet provide the better way to read messages by correllation id.
Now I use Hornet JMS. I don't use spring things at all.
Thank you in advance.
if you have a queue with n messages in then to find a specific message you will need to traverse the queue until you find it, the more messages the longer this will take and if you add paging into the equation it will take even longer.
If you want to look up an object by a key then you should really be using a database.