nats-io / nats-architecture-and-design

Architecture and Design Docs
Apache License 2.0
187 stars 20 forks source link

Domain in JetStream Pub Ack #44

Closed ripienaar closed 1 year ago

ripienaar commented 2 years ago

Overview

2 domains can host a stream with the same name, the PubAck only included the Stream name making it hard to know if the message went to the desired location. It now also includes the domain.

Server PR https://github.com/nats-io/nats-server/pull/2432

new Struct is:

type PubAck struct {
    Stream    string `json:"stream"`
    Sequence  uint64 `json:"seq"`
    Domain    string `json:"domain,omitempty"`
    Duplicate bool   `json:"duplicate,omitempty"`
}

Clients and Tools

Other Tasks

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.

bruth commented 1 year ago

Python support as of https://github.com/nats-io/nats.py/pull/216

bruth commented 1 year ago

Regarding docs, this will generated as part of reference docs from the JSON schema definitions.