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

Add Jetstream domain support #86

Merged
merged 3 commits into from
Oct 19, 2023
Merged

Add Jetstream domain support #86

merged 3 commits into from
Oct 19, 2023

Conversation

c0deaddict
Copy link
Contributor

First of all thanks for this nice library! It helped us connecting our Elixir service to NATS JetStream 💯

We are in the process of migrating to a new NATS setup which uses Leaf Nodes (https://docs.nats.io/running-a-nats-service/configuration/leafnodes). For this we needed to use JetStream domains. This PR adds support for configuring an optional domain parameter to streams and consumers.

Tested this change in a service.

@mmmries
Copy link
Owner

mmmries commented Oct 10, 2023

@autodidaddict are you familiar with the jetstream domains? I haven't used them and would love to get some more expert opinion on this

@autodidaddict
Copy link
Collaborator

autodidaddict commented Oct 10, 2023

I am familiar. I'll take a closer look when I get to a non-phone.

This should close #73

Copy link
Collaborator

@autodidaddict autodidaddict left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I don't think there are any edge cases missing here

@mmmries
Copy link
Owner

mmmries commented Oct 19, 2023

@brandynbennett I think this is ready to be merged. Do you have any reservations on this?

@mmmries
Copy link
Owner

mmmries commented Oct 19, 2023

Looks like we need to do a mix format on this code change @c0deaddict

We always check the formatting on CI jobs

@c0deaddict
Copy link
Contributor Author

Looks like we need to do a mix format on this code change @c0deaddict

We always check the formatting on CI jobs

Good one! Did that now 👍

Copy link
Collaborator

@brandynbennett brandynbennett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@mmmries mmmries merged commit bd5ca30 into mmmries:master Oct 19, 2023
2 checks passed
@mmmries
Copy link
Owner

mmmries commented Oct 19, 2023

This has been released as jetstream v0.0.9

Thanks @c0deaddict for the great PR and being open to feedback ❤️ 💛 💙 💚 💜

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.

Jetstream client functions need to honor the js_domain option
4 participants