activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <>
Subject Re:Random slow Subscribers - causing Topic to full - Solution ?
Date Sun, 17 Mar 2013 13:50:28 GMT
I think you have to consider the Virtual Topic,

At 2013-03-16 13:04:41,jaikit <> wrote:
>I currently have a Topic and there are multiple clients which are subscribed
>to my Topic. I am running with default prefetch for each client. Now the
>problem is if one of the client is slow, it slows down other subscribers. I
>am thinking to play by setting low prefetch for slow consumer. But this
>solution does not work because in my case slow clients are random and they
>keep changing over a period of time (based on the backend they are
>communicating). Hence I cannot keep low prefetch for one of the client. 
>Solution which I am thinking to prototype below solution: 
>I will be keeping queues for each subscriber and now Given a Topic - pool of
>threads will remove events from Topic and copy the events to my queue. Now
>since I have queue for each subscriber, each client is independent of each
>other. I will set prefetch limit to each queue. Once that limit is reached,
>I will drop the events. Drawback: Memory is required for each queue now.
>I would like some views about above solution or any other solution which you
>think might fit for my case.
>View this message in context:
>Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message