Rate limits
The Lobby service uses rate limits to help control network traffic by restricting the number of requests received by the API within any given second. The following table shows the rate limit for each of the Lobby service’s request types for players and service accounts. Because service accounts are allowed much more control and are likely to be managing multiple lobbies at a time, their rate limits are more relaxed.
Service Account rate limiting is on a per IP adress basis. The number of requests taken in account will be shared if several game servers are hosted on a same machine or if several machines are behind the same NAT gateway.
Request type | Rate limit | Service account rate limit |
---|---|---|
Query for lobbies | 1 request per second | 100 requests per second |
Create lobbies | 2 requests per 6 seconds | 200 requests per 6 seconds |
Join lobbies | 1 request per second | 200 requests per 6 seconds |
Create or Join lobbies | 1 request per second | 200 requests per 6 seconds |
Quick Join lobbies | 1 request per second | 600 requests per 60 seconds |
Get lobbies | 1 request per second | 100 requests per second |
Get joined lobbies | 1 request per second | 1 request per 30 seconds |
Get hosted lobbies | 1 request per second | 100 requests per 10 seconds |
Delete lobbies | 2 requests per second | 200 requests per second |
Update lobbies | 5 requests per 5 seconds | 500 requests per 5 seconds |
Bulk update lobbies | N/A (forbidden) | 1 request per second |
Leave lobbies or remove players | 5 requests per second | 500 requests per second |
Update players | 5 requests per 5 seconds | 500 requests per 5 seconds |
Heartbeat lobbies | 1 request per second | 500 requests per 30 seconds |
Reconnect to lobby | 1 request per second | 200 requests per 6 seconds |