Hello World,
I want to send data to all the users that are on the server, but if I have many users connected at the same time, this would lead to a bottleneck because for every room I take all users, how can I send data to all users of the server without causing a bottleneck?
Would the solution be that the client queries the server? I have the same problem, because all clients would query the server at a given time.
MidNight send data to all users
-
- Posts: 14
- Joined: 09 May 2019, 17:24
Re: MidNight send data to all users
Hi,
the server is not going to be a "bottleneck". The main bottleneck is the network, depending on how much bandwidth you have at your disposal, and how many messages you need to send.
However if you want to send a message to all users, then there's no way around it. You need to send a copy of the message to everyone.
All you can really do to is optimizing the message size, making it as small as possible.
Cheers
the server is not going to be a "bottleneck". The main bottleneck is the network, depending on how much bandwidth you have at your disposal, and how many messages you need to send.
However if you want to send a message to all users, then there's no way around it. You need to send a copy of the message to everyone.
All you can really do to is optimizing the message size, making it as small as possible.
Cheers
-
- Posts: 14
- Joined: 09 May 2019, 17:24
Re: MidNight send data to all users
Very well, thank you for having raised all my doubts
Who is online
Users browsing this forum: No registered users and 101 guests