# NATS Message System Samples

NATS messaging system examples including pub/sub, request-reply, queue groups, and JetStream for modern cloud-native applications

> Canonical page: https://elysiatools.com/en/samples/nats

- **Category:** Messaging

- **Keywords:** nats, messaging, pub/sub, cloud-native, microservices, jetstream, queue, distributed systems

## Overview

NATS messaging system examples including pub/sub, request-reply, queue groups, and JetStream for modern cloud-native applications

## Examples

- **NATS Hello World - Basic Pub/Sub**: Simple NATS publisher and subscriber example demonstrating basic publish/subscribe pattern
- **NATS Request-Reply Pattern**: Implement request-reply communication pattern with NATS for synchronous messaging between services
- **NATS Queue Groups - Load Balancing**: Implement queue groups for load balancing messages across multiple subscribers
- **NATS JetStream - Persistent Streaming**: Use NATS JetStream for persistent message streaming with durability and replay capabilities
- **NATS Wildcard Subscriptions**: Advanced subscription patterns using wildcards for flexible message routing

## When to use

- Use this sample set when you want reference inputs for NATS Message System Samples.
- Use it to preview output formats and compare related sample variants.

## How it works

- Open a sample entry to inspect the prepared example payload or asset.
- Compare it with related tools to understand how the workflow connects.

## Use cases

- NATS Hello World - Basic Pub/Sub
- NATS Request-Reply Pattern
- NATS Queue Groups - Load Balancing
- NATS JetStream - Persistent Streaming
- NATS Wildcard Subscriptions

## Frequently asked questions

### What is included in NATS Message System Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for NATS Message System Samples.

## Related tools

- [Leap Second Table — IERS DUT1, TAI-UTC Offset & Cross-System Time](https://elysiatools.com/en/tools/leap-second-table-iers-dut1-tai-utc-offset-diff): IERS leap-second history (27 insertions since 1972), current TAI-UTC offset (+37 s), DUT1 (UT1-UTC) notes, and POSIX/NTP/GPS/TAI/UT1 cross-system conversion for a given UTC instant

## Related content

- [Apache Pulsar Samples](https://elysiatools.com/en/samples/pulsar-samples): Apache Pulsar examples including pub/sub, readers, consumers with different subscription types, schema management, and tiered storage for enterprise messaging
- [RocketMQ Message Queue Samples](https://elysiatools.com/en/samples/rocketmq-samples): Apache RocketMQ examples including producers, consumers, ordered messages, delayed messages, broadcast consumption, and transactional messages for high-throughput messaging
