I’m making a matchmaking system that uses the messaging service along with main servers that are supposed to receive all requests.
But I was wondering how many requests can a single server handle each second? I’m expecting to maybe have 1k servers sending messages every 4 seconds.
I’m not talking about the quota but about proccesing those requests because clearing a single server wouldn’t be able to receive 2 million messages every second.
Would there be a way to know if it would be able to handle it or not?
Hey,
Doing 1.000 requests every 4 seconds is impossible with messaging service.
I don’t know how your system is, but you shouldn’t send a request each time a player is entering or leaving the matchmaking queue.
Instead you can send a request every like 5 or 15 seconds with a table as argument that contain the UserID of each players of the server that are currently in matchmaking queue.
Then in each server, using the message received, you can do a list of all players that are currently in queue in the entire game, so the queue list is updated every 5/15 seconds.
The max request are there:
Each server can send 150 + 60 * (number of players in this game server) requests per minute
Each topics can receive (10 + 20 * number of servers) requests per minute
The entire game can receive (100 + 50 * number of servers) requests per minute
Well thats what I’m doing, it sends updates each 4 second (if there are). You might have miss understood because I’m talking about having each server send 1 message (which if there are 1k servers is possible).
Tho as i mentionned, I’m talking about how much the server can handle as receiving requests is the same thing as executing code. You can’t spawn 20000 part each frame and not expect it to lag / crash, the same thing goes with the message.
But from my test, when i sent it 50 messages, it printed all of them in less than 100 ms so i think it should be fine. So i don’t think it would struggle receiving 1k messages, atleast the backend wouldn’t. If my code isn’t optimized, that my problem
Oh alright, yeah i misunderstood what you’re talking about, sorry ^^
Yeah i think even if the server receive 1k requests at same time it should handle them fine, otherwise it would have no sense to set the requests limits at a certain amount if the server can’t handle them, i guess it is also taking the server ressources used into account.