You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by erickmelo <er...@gmail.com> on 2011/06/02 22:29:57 UTC

How ActiveMQ handle thousand of subscribers in a Topic?

Hi,

I'm a new user of ActiveMQ and I've some questions about the scalability. 

I've found some tests the show activeMQ throughput (many senders and many
consumers). But I didn't find test showing how can ActimeMQ manage a large
number of subscribers of a topic.

I would like to send a msg for a large number of clients using the Topic
(non-persistent) strategy. I have some questions in this scenario:
- When the client connects to ActiveMQ (tcp://hostname:port) a TCP socket
connection is created. Does this connection keep alive always of is there
some schema of "pooling"?
- How many clients can be connected to a Host at the same time?
- Is possible to create a "time-to-live" to a message?
- How does ActiveMQ ajax support works with non-persistent message (it's use
pooling)?

Erick 

--
View this message in context: http://activemq.2283324.n4.nabble.com/How-ActiveMQ-handle-thousand-of-subscribers-in-a-Topic-tp3569320p3569320.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: How ActiveMQ handle thousand of subscribers in a Topic?

Posted by Dejan Bosanac <de...@nighttale.net>.
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
play.

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

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net

Connect at CamelOne <http://camelone.com/> May 24-26

The Open Source Integration Conference



On Fri, Jun 3, 2011 at 4:41 PM, erickmelo <er...@gmail.com> 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:
> http://activemq.2283324.n4.nabble.com/How-ActiveMQ-handle-thousand-of-subscribers-in-a-Topic-tp3569320p3571030.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: How ActiveMQ handle thousand of subscribers in a Topic?

Posted by erickmelo <er...@gmail.com>.
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: http://activemq.2283324.n4.nabble.com/How-ActiveMQ-handle-thousand-of-subscribers-in-a-Topic-tp3569320p3571030.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: How ActiveMQ handle thousand of subscribers in a Topic?

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

some useful scalability resources:

- ${ACTIVEMQ_HOME}/conf/activemq-scalability.xml
-
http://www.slideshare.net/dejanb/advanced-messaging-with-apache-activemq?from=ss_embed
-
have some slides on scaling



Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net

Connect at CamelOne <http://camelone.com/> May 24-26

The Open Source Integration Conference



On Thu, Jun 2, 2011 at 10:29 PM, erickmelo <er...@gmail.com> wrote:

> Hi,
>
> I'm a new user of ActiveMQ and I've some questions about the scalability.
>
> I've found some tests the show activeMQ throughput (many senders and many
> consumers). But I didn't find test showing how can ActimeMQ manage a large
> number of subscribers of a topic.
>
> I would like to send a msg for a large number of clients using the Topic
> (non-persistent) strategy. I have some questions in this scenario:
> - When the client connects to ActiveMQ (tcp://hostname:port) a TCP socket
> connection is created. Does this connection keep alive always of is there
> some schema of "pooling"?
> - How many clients can be connected to a Host at the same time?
> - Is possible to create a "time-to-live" to a message?
> - How does ActiveMQ ajax support works with non-persistent message (it's
> use
> pooling)?
>
> Erick
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-ActiveMQ-handle-thousand-of-subscribers-in-a-Topic-tp3569320p3569320.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>