Skip to content

Add server cluster support to MessageCentral #4094

Closed

Description

@coderabbitai

Description

The MessageCentral class currently only handles communication within a single server instance. It needs to be extended to support communication between servers in a cluster deployment.

Affected Files

  • packages/serverpod/lib/src/server/message_central.dart:16

Context

// TODO: Support for server clusters.

/// The [MessageCentral] handles communication within the server, and between
/// servers in a cluster. It is especially useful when working with streaming
/// endpoints.

Suggested Implementation

  • Design a messaging protocol for cross-server communication
  • Implement pub/sub mechanism (possibly Redis-based) for cluster-wide message distribution
  • Add configuration options for cluster mode
  • Ensure backward compatibility with single-server deployments
  • Add comprehensive tests for cluster scenarios

Impact

Essential for production deployments with multiple server instances

Related

Activity

  1. added
    enhancement
    on Oct 27, 2025
  2. nielsenko commented on Oct 29, 2025

    @nielsenko
    Collaborator

    This was created from a comment about an old architecture ambition. This no longer fits with how serverpod works.

  3. moved this from Inbox 📫 to Done 🚀 in Serverpod Frameworkson Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions