Chatroom message discard policy

In chatrooms, the RC server processes up to 40 upstream messages every 200 milliseconds by default. Of these, 20 are reserved for high-priority messages, while the remaining 20 are shared between high and low-priority messages.

When chatroom message volume is high, the RC server discards the latest messages that exceed the consumption limit based on their sending order to ensure server stability.

To protect important messages from being discarded, RC offers the following services:

  1. Chatroom user allowlist: Messages from allowlisted users are protected and given the highest priority during high message volume.

  2. Chatroom message allowlist: Messages on this list are protected and prioritized during high message volume.

  3. Chatroom message priority: Set low-priority message types to be discarded first during high message volume, ensuring important messages remain intact.

Note: By default, all RC messages are high priority.

After enabling these features, the server processes chatroom messages as follows:

Regular messages (both high and low priority) and allowlist messages are counted. Regular messages default to 40 every 200 milliseconds, while allowlist messages default to 60 every 200 milliseconds.

a. For regular messages, up to 40 can be sent every 200 milliseconds. Of these, 20 are reserved for high-priority messages, and the remaining 20 are shared between high and low-priority messages. Excess messages are discarded in the order they were sent.

b. For allowlist messages (from allowlisted users or of allowlisted types), they count toward both regular message (40) and allowlist message (20) quotas, allowing up to 60 messages. If the total exceeds 60, new chatroom messages are discarded.

Note: The default upstream message quota for a single chatroom is 60 every 200 milliseconds, which can be configured after enabling Dedicated Cloud.