Skip to content

feat: Add a NATS client module#239

Open
robertgzr wants to merge 6 commits into
prod-stagingfrom
rgz/feat/nats-client
Open

feat: Add a NATS client module#239
robertgzr wants to merge 6 commits into
prod-stagingfrom
rgz/feat/nats-client

Conversation

@robertgzr

Copy link
Copy Markdown
Contributor

This implements a NATS client, which uses Jetstream under the hood to
ensure consistent message delivery.

Connects-to: TOOL-359

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>
@robertgzr robertgzr force-pushed the rgz/feat/nats-client branch from 0f20cf4 to 1d950a5 Compare April 30, 2026 15:50

@jedevc jedevc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

Comment thread go.work
./limiter
./log
./middleware
./nats

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should also be added to dependabot, and ./nats/LICENSE.md should be a symlink.

Comment thread nats/client.go Outdated
func (c *Client) connect(ctx context.Context) error {
// set up connection
natsOpts := []nats.Option{
// nats.UserInfo(s.config.NatsUser, s.config.NatsPassword),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Auth? 👀

Comment thread nats/client.go Outdated
@jedevc jedevc requested a review from nderjung May 1, 2026 15:13
robertgzr added 5 commits May 4, 2026 23:13
@robertgzr robertgzr force-pushed the rgz/feat/nats-client branch from 65b6bc5 to 3e8a826 Compare May 5, 2026 12:47
Comment thread nats/client.go
@@ -0,0 +1,149 @@
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2025, Unikraft GmbH.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

2026

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.

3 participants