[Python] Overhead caused while fetching the required client in WAMP WS

Discussão em 'Python' iniciado por Stack, Julho 8, 2025.

  1. Stack

    Stack Membro Participativo

    I have created a websocket server using the WAMP WS provided in python programming language.

    I have a requirement where I am subscribing about 500 clients with the WAMP WS server at a time.

    But when I am publishing the data I will send it only to a single client based on certain conditions. I know that it is very much simple to just loop throgh the list of cliets and find out the eligible and then send the data to that respective client.

    I would like to know, is there any other way without using the loops, as using loops will lead to a large overhead if in case the required client is at the last position.

    Continue reading...

Compartilhe esta Página