Skip to content

chore: refactor NATS pubsub to use MsgQueue#26197

Draft
spikecurtis wants to merge 1 commit into
mainfrom
spike/scaletest-151-msg-queue
Draft

chore: refactor NATS pubsub to use MsgQueue#26197
spikecurtis wants to merge 1 commit into
mainfrom
spike/scaletest-151-msg-queue

Conversation

@spikecurtis

@spikecurtis spikecurtis commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Use the existing MsgQueue from the original PGPubsub instead of the 2-channel solution originally built here.

Renames natsSub to groupSub, since conceptually, a "NATS Subscription" already refers to the underlying subscription on the NATS server.

This PR also simplifies the closing of the PubSub to just close each localSub. When the last localSub for an event is closed, it unsubscribes and remove the groupSub. This ensures we go through the same code paths closing normally and at end of day.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant