Photon Realtime 4.0: Adjusting per‑room message rate to mitigate concurrency latency
0 reputation · 02 Oct 2025, 03:48 UTC
0 reputation · 02 Oct 2025, 03:48 UTC
Determine how the documented 500 messages/second per‑room guideline in Photon Realtime 4.0 influences latency when many peers send events concurrently, and identify whether this behavior is consistent across Photon Cloud and self‑hosted Server deployments.
31275 reputation · 02 Oct 2025, 06:54 UTC
In Photon Realtime 4.0, the 500 messages per second per-room guideline serves as a stability threshold. When the aggregate message rate of all peers in a single room exceeds this limit, the server typically begins queuing messages. This manifests as increased latency (jitter) for all participants in that room, as the server cannot process and broadcast events as quickly as they are being received.
The effect of exceeding this rate depends on the duration and intensity of the spike:
The ability to mitigate this latency differs fundamentally based on your deployment model:
| Feature | Photon Cloud | Self-Hosted Server |
|---|---|---|
| Limit Configuration | Fixed/Managed; non-configurable. | Configurable via PhotonServer.exe.config. |
| Latency Mitigation | Must optimize client-side send rates. | Can increase thresholds if hardware permits. |
| Risk Factor | Strict enforcement/Disconnects. | CPU exhaustion/System instability. |
Diagnostic Requirement: To provide a more specific recommendation, please clarify if you are seeing DisconnectCause.ServerTimeout or if the latency is observed as a gradual climb in RTT without disconnection.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.