nats-io / nats-architecture-and-design

Architecture and Design Docs
Apache License 2.0
206 stars 22 forks source link

Support Nats-Expected-Last-Subject-Sequence header #8

Open ripienaar opened 3 years ago

ripienaar commented 3 years ago

Overview

When publishing to a stream with subject x.* one can now express a constraint using the header Nats-Expected-Last-Subject-Sequence stating that the message going into subject x.y should only be accepted if the last sequence in x.y was a specific value. This is a subject aware version of Nats-Expected-Last-Msg-Id.

There is no ADR. The server PR is https://github.com/nats-io/nats-server/pull/2322

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.