Skip to content

UpdatePresence using batch commit on addPresence #557

@karasart

Description

@karasart

Is your feature request related to a problem? Please describe.
No problem, just an optimize on efficiency.

Describe the solution you'd like
A new config field ClientPresenceUpdateBatchSize represents the batch size using, default 10s. Since lua ExecMulti will failed on redis-cluster, it will be check before use, and falls back to original if presence manager is cluster.

Describe alternatives you've considered
parallel on batch, but it seems checkSubscriptionExpiration function can't be that way.

Additional context
My collegues and i use centrifugal as our push service, and changes has been added to my company's code and it works great for 2 months, so i think if it's stable enough to submit a PR.

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