nats-io / nats-architecture-and-design

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

Support MaxMsgsPer for streams #9

Closed ripienaar closed 1 year ago

ripienaar commented 2 years ago

Overview

A new property allows JetStream to track messages per subject rather than the entire stream. That is MaxMsgsPerSubject: 5 would allow 5 messages in x.y and 5 messages in x.z.

There is no ADR it's a minor feature. Server PR https://github.com/nats-io/nats-server/pull/2284

stream_configuration -> max_msgs_per_subject

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.

kozlovic commented 2 years ago

Again, commit may disappear when ready for PR, etc.. but done in the C client: https://github.com/nats-io/nats.c/commit/2867903297232aacae8b51754a9ebe2514c27f72

sloveridge commented 2 years ago

Merged into Go client https://github.com/nats-io/nats.go/commit/c8db2d38925927f44bfbf270dfbce485097941db

caspervonb commented 2 years ago

Merged into Rust client https://github.com/nats-io/nats.rs/commit/80a2ed1932c7c59669e049ef95c8f0610c390282

bruth commented 1 year ago

Documented as of https://github.com/nats-io/nats.docs/pull/495