feat: Add a NATS client module#239
Open
robertgzr wants to merge 6 commits into
Open
Conversation
This implements a NATS client, which uses Jetstream under the hood to ensure consistent message delivery. Signed-off-by: Robert Günzler <robert@unikraft.cloud>
0f20cf4 to
1d950a5
Compare
jedevc
reviewed
May 1, 2026
jedevc
left a comment
Collaborator
There was a problem hiding this comment.
Seems reasonable, but are there specific pieces of helper functionality that you expect to end up here?
It's such a thin wrapper over the nats sdk, I'm not sure I understand why it needs to be in x.
| ./limiter | ||
| ./log | ||
| ./middleware | ||
| ./nats |
Collaborator
There was a problem hiding this comment.
Should also be added to dependabot, and ./nats/LICENSE.md should be a symlink.
| func (c *Client) connect(ctx context.Context) error { | ||
| // set up connection | ||
| natsOpts := []nats.Option{ | ||
| // nats.UserInfo(s.config.NatsUser, s.config.NatsPassword), |
Signed-off-by: Robert Günzler <robert@unikraft.cloud>
Signed-off-by: Robert Günzler <robert@unikraft.cloud>
65b6bc5 to
3e8a826
Compare
nderjung
reviewed
May 8, 2026
| @@ -0,0 +1,149 @@ | |||
| // SPDX-License-Identifier: BSD-3-Clause | |||
| // Copyright (c) 2025, Unikraft GmbH. | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements a NATS client, which uses Jetstream under the hood to
ensure consistent message delivery.
Connects-to: TOOL-359