SocketCluster / SocketCluster/socketcluster

Multi data center / region cluster

Open
#511 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6.2k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

Hello, we are looking to use socketcluster & pubsub for a new project and need to ensure the lowest latency data delivery possible. We would like to understand whether the following is possible and perhaps even default or configurable behaviour:

1 - when a client connects are they always connected to the closest server / node to them geographically, or would there need to be some load balancer that routes the client based on their location or perhaps some sort of preset preference? ie client connects, we know their location is Chicago so we connect them to our US SocketCluster nodes.

For example - if we had 9 servers making up the cluster spread across 3 regions (A,B & C). Could a client located in region A be connected into the servers located in region A?

2 - Similar question for publication:

So using our previous example, if I have data being generated in region C can I ensure that it is published into the SocketCluster servers in the same region and then distributed to any subscribed clients in region C immediately?

We want to ensure that data we publish into the SocketCluster travels the minimum distance to get to a connected client - so if we generate data on servers in, say Germany, we'd want to publish to the Global SocketCluster via nodes located in Europe. If we then have a client, say in France, subscribed to the relevant channel then we don't want the client to have to wait for data to be propagated across the cluster before they receive it. We would want that client to be connected into the European SocketCluster servers so that they receive the data as fast as possible.

That same data would then be propagated across the cluster to any other clients who may be subscribed to the channel and connected to their local SocketCluster servers.

Thanks very much, Rich.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by determining whether regional client routing and locality-aware pub/sub are supported by SocketCluster, then define the required configuration or implementation scope; done would mean a clear supported-behavior answer or an agreed design for multi-region delivery.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
distributed-systems, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.