activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: How ActiveMQ handle thousand of subscribers in a Topic?
Date Fri, 03 Jun 2011 14:59:10 GMT
ActiveMQ keeps open socket connection to all clients, as that's the nature
of JMS communication.

Sure there's a limit in number of open sockets underlying system can take,
that's where other scaling techniques (horizontal and hybrid) comes into

You can also implement some kind of polling in your application and
open/close JMS connections when you need them.

Dejan Bosanac -
The experts in open source integration and messaging -
ActiveMQ in Action -
Blog -

Connect at CamelOne <> May 24-26

The Open Source Integration Conference

On Fri, Jun 3, 2011 at 4:41 PM, erickmelo <> wrote:

> Hi Dejan,
> Thank you for the answer. The slides helped to understand how to scale
> ActiveMQ.. But some questions remains:
> - How ActiveMQ handle the subscribers of a non-persistent topic? Does it
> consider all connected users at the same moment (with a tcp socket opened)?
> Or is there some strategy for supporting Ajax clients (that uses a
> pooling)?
> - On the slide 25 the problems of vertical scaling are listed... Thread
> count is on of the main problems, but I think opened sockets are also a
> problem... If ActiveMQ keep a opened socket with each client the OS limit
> of
> thread maybe a problem or not?
> I've an idea of using ActiveMQ to notify a large number of clients
> subscribed to a topic at the same time (small control messages -
> non-persistent). At this point I'm evaluating how much servers will be
> needed to serve this task...
> Best Regards,
> Erick
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

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