Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Welcome to the "paho-dev" mailing list


The Paho clients should be capable of making 100s  of subscriptions without a problem, though the more subscriptions you make, the more memory you will use.

I'd say the first method is the best as it will result in cleaner application and server logic. It will also be more efficient / faster.

- James

On Sat, 17 Sep 2016, 15:47 manish kumar, <> wrote:

Is there any limitation on how many topic can be subscribed by a client ? I am using Paho js & java client. My use case is i want to inform every user about a new comment posted for a post.

I have two solution:

  1. every time a user post a comment subscribe to that post topic
  2. every time a user post a comment, iterate through each user and send message to all user specific topic

which one is will be better for large scale realtime application? What is the general practice adopted in big scale application ?

paho-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top