Skip to content

Periodically remove expired notification channels from storage #2220

Description

@jeswr

Feature description

Expired notification channels are currently removed lazily when their identifiers are read. If a channel is never accessed again, its record and topic index entry can remain in storage indefinitely.

Add a configurable periodic sweep that enumerates stored channels, removes entries that are still expired after revalidation under their channel lock, and shuts its timer down during server finalization. The sweep interval should be configurable and disabling it should remain possible for storage backends where enumeration is undesirable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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