Skip to content
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

Use a shared nats server #366

Merged
merged 6 commits into from
Apr 4, 2024
Merged

Use a shared nats server #366

merged 6 commits into from
Apr 4, 2024

Conversation

neekolas
Copy link
Collaborator

@neekolas neekolas commented Mar 28, 2024

Summary

There is an issue with SubscribeAll and group messages. Both the legacy and the MLS APIs create their own nats servers. That means that the servers cannot talk to one another. This only becomes an issue with SubscribeAll, which is expected to receive messages from both servers.

  • This PR creates a shared nats server for both APIs and passes it in as an argument
  • Wraps messages sent to Nats in an Envelope to be compatible with SubscribeAll

Notes

There is a bunch of half-finished work on the underlying streaming infrastructure. We are so close to being able to remove Nats altogether, which would be a big win for both performance and maintainability. We should prioritize that work at some point.

@neekolas neekolas marked this pull request as ready for review April 4, 2024 15:57
@neekolas neekolas merged commit b44149a into main Apr 4, 2024
3 checks passed
@neekolas neekolas deleted the nm/subscribe-all-issues branch April 4, 2024 15:57
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.

2 participants