Protocols
Saved & recent

NATS

Also called: Core NATS, NATS messaging, JetStream

NATS is a messaging system with a client-server protocol that routes messages by named subjects. Core NATS supports publish-subscribe, request-reply and queue groups with at-most-once delivery: an offline subscriber cannot later retrieve a missed message from Core NATS. JetStream adds stored streams, replay and consumer delivery features.

For example, a greenhouse publishes live readings on greenhouse.east.temperature. A connected dashboard can receive them through Core NATS. If an auditor must retrieve readings after a network outage, the deployment can use an appropriately configured JetStream stream and consumer. Those persistence and acknowledgment semantics belong to JetStream, not to every NATS publication, and depend on its configuration.

Read first
Publish–subscribe
Related
Publish–subscribe, Message broker, Delivery semantics
Further reading
publisher connected dashboard temperature publication Core NATS · ephemeral delivery at most once configured JetStream case publish 1 2 3 replay stored stream auditor reconnects stream persistence and replay
Two configurations for the same publisher: Core NATS is ephemeral and delivers at-most-once to live subscribers; an appropriately configured JetStream stream adds storage and later replay.

View in the full Protocols collection