Skip to content

Cluster-aware Subscription notification delivery #170

Description

@smunini

The Subscriptions engine tracks connected WebSocket clients in process memory (crates/subscriptions/src/channels/ws_manager.rs), so in a multi-instance deployment only the instance holding a client's connection can deliver its notifications.

Subscription resources themselves are database-backed; what's needed is a shared delivery channel (e.g., a message bus or pub/sub fan-out) so resource events on any instance reach clients connected to any other.

Until then, WebSocket subscription delivery is single-instance / sticky-session only (rest-hook channels are unaffected).

Scope

  • Introduce a shared delivery channel (message bus / pub-sub fan-out) for subscription notifications
  • Ensure resource events on any instance reach WebSocket clients connected to any other instance
  • rest-hook channels are already cluster-safe and out of scope

Tracked on the ROADMAP under Next → FHIR Server Capabilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions