Headers
Message headers are used in a variety of JetStream contexts, such de-duplication, auto-purging of messages, metadata from republished messages, and more.
Publish
Headers that can be set by a client when a message being published.
Name | Description | Example | Version |
---|---|---|---|
| Client-defined unique identifier for a message that will be used by the server apply de-duplication within the configured |
| 2.2.0 |
| Used to assert the published message is received by some expected stream. |
| 2.2.0 |
| Used to apply optimistic concurrency control at the stream-level. The value is the last expected |
| 2.2.0 |
| Used to apply optimistic concurrency control at the stream-level. The value is the last expected sequence and the server will reject a publish if the current sequence does not match. |
| 2.2.0 |
| Used to apply optimistic concurrency control at the subject-level. The value is the last expected sequence and the server will reject a publish if the current sequence does not match for the message's subject. |
| 2.3.1 |
| Used to apply a purge of all prior messages in the stream or at the subject-level. |
| 2.6.2 |
RePublish
Headers set messages that are republished.
Name | Description | Example | Version |
---|---|---|---|
| Name of the stream the message was republished from. |
| 2.8.3 |
| The original subject of the message. |
| 2.8.3 |
| The original sequence of the message. |
| 2.8.3 |
| The last sequence of the message having the same subject, otherwise zero if this is the first message for the subject. |
| 2.8.3 |
| The original timestamp of the message. |
| 2.10.0 |
Sources
Headers that are implicitly added to messages sourced from other streams.
Name | Description | Example | Version |
---|---|---|---|
| Specifies the origin stream name, the subject and the sequence number plus the subject filter and destination transform of the message being sourced. |
| 2.2.0 |
Headers-only
Headers added to messages when the consumer is configured to be "headers only" omitting the body.
Name | Description | Example | Version |
---|---|---|---|
| Indicates the message size in bytes. |
| 2.6.2 |
Mirror
Headers used for internal flow-control messages for a mirror.
Name | Description | Example | Version |
---|---|---|---|
| 2.2.1 | ||
| 2.2.1 | ||
| 2.4.0 | ||
| 2.6.4 |
Last updated