Skip to content

[feature] presence with massive amount of active users #335

@morya

Description

@morya

Is your feature request related to a problem? Please describe.

presence

It works well (for channels with reasonably small number of active subscribers though)

but, it has a natual limit when users grow in a channel.

because of the implementation and msg definition from https://github.com/centrifugal/protocol/blob/43664d12bdd9086315ccdb96c742618a4ea6b3b0/client.proto#L245

Describe the solution you'd like

I am considering adding a new command, to scan all users from engine(memory/redis), and send it with batch reply.
Like this:

for {
  // 1. scan redis hash keys
  // 2. build repeated response
  // 3. send to client
  if loopIsDone { 
    break
  }
}

Describe alternatives you've considered

no

Additional context

sometimes, it could useful for admin to retieve all users inside one big channel.

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