Legacy Dev Forum Posts

 View Only

Sign Up

Clarification on websocket limits

  • 1.  Clarification on websocket limits

    Posted 06-05-2025 18:23

    Mohankrishna | 2022-07-25 06:01:07 UTC | #1

    We have a limit which states Channel.topics.max The maximum number of topics subscriptions per channel 1000

    Notification.rate.per.minute i.e. Maximum number of notification operations per token per minute Question: Wat does "Notification operations" mean ?

    Let us take example of user presence notification - Can you please clarify using the same ?

    1. Topic is presence
    2. On a channel we can only subscribe for 1000 users presence [Please correct me if I am wrong]

    Question: Attempting to add 1001 user to the same channel then 1st users subscription will be lost?/Will send a failure message - Any event when this happens ?

    1. On User presence change we bind a event handler which does a operation. - Is this called notification operation ?

    How can I test these limits on development environment - Any recommendations please share so that all scenarios can be handled


    Eos_Rios | 2022-07-25 12:35:36 UTC | #2

    1. Each WebSocket connection is limited to 1,000 topics. If you (attempt to) subscribe to more than 1,000 topics, then the notification service returns a 400 error code. Nothing stops you from listening to 5000 users by having 5 separate channels of 1000 each. The 20 channel limit prevents you from doing more than 20,000 though.
    2. A notification operation would be subscribing or unsubscribing as I understand it.

    The developer toolbox has a tool built in for testing notifications.


    Mohankrishna | 2022-07-25 12:35:36 UTC | #3

    Thank you @Eos_Rios Do you mean we can only subscribe/unsubscribe to 60 topics in a min ?


    Mohankrishna | 2022-07-25 10:21:33 UTC | #4

    I think I found answer to myself - [spoiler]That limit is only applied to notification API not for all.[/spoiler] Just tried to test it that number limit is applied on all the subscription. i.e. We get 429 if the number exceed 59. I tried for user presence.

    Happy for this post to be marked as closed :)


    John_Carnell | 2022-07-25 12:35:16 UTC | #5


    This post was migrated from the old Developer Forum.

    ref: 15658