Skip to content

Conat integrated cluster support #8388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 118 commits into from
Jul 6, 2025
Merged

Conat integrated cluster support #8388

merged 118 commits into from
Jul 6, 2025

Conversation

williamstein
Copy link
Contributor

@williamstein williamstein commented Jun 25, 2025

We want this to easily scale to an order of magnitude more users than we have now, so better write it now when it is fun rather than later when it's stressful!

The goal here is basically to replace the "cluster adapter" from socketio with something similar that (1) is much more dynamic, (2) is more scalable (don't broadcast every message to every node), and (3) utilizes conat's built in ability to manage and work with distributed streams (something even redis doesn't do).

…attern goes away, so it doesn't grow unbounded over time
- I haven't even really decided on the semantics of this yet, so this is
  just a first little sanity check
… exposes a blocker bug in persist/cluster2.test.ts
…odes; rewrite metrics recorder in typescript
- everything doesn't work, and we'll have to get way to low level; also
  no evidence at all that this is needed, and extensive evidence it is
  NOT needed
- this doesn't fix it, but has a key comment about one of the steps
  needed. Basically, some of the code around core-stream doesn't
  take the fact that messages can be dropped under load seriously
  enough, etc.
…ed and there's a warning message

- this was causing a lot of trouble for testing, but is very unlikely
  for a client in the wild, since their connection usually equals the
  lifetime of the thing
- this was causing excessive cpu usage when testing on kucalc -- super
  glad to found it before release
@williamstein williamstein merged commit 66205ef into master Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant