Skip to content

Adaptive inbox query rate limit #2

@sportdeath

Description

@sportdeath

The inbox rate limit is currently set to a constant 1 second - in other words clients are instructed to wait 1 second before polling again.

For instant messaging a low rate limit is desirable, however if a client leaves a messaging app open in a tab and forgets about it, this leads to excessive polling - draining the client battery and wasting server resources.

One possibility:

  • If a client continually polls a query and receives no results, the server should gradually increase the rate limit up until a maximum (10 seconds, 20 seconds, 1 minute?). If a poll returns a result, the limit should be reset to 1 second (or perhaps even lower?).

Questions:

  • What process should be used to increase the rate limit?
  • What should the maximum be?
  • Are there issues with this or other possibilities to consider?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions