NATS Logo by Example

JetStream

Consumer - Fetch Messages

The new JetStream API provides simplified semantics for JetStream asset management and message consumption. It removes the complexity of Subscribe() in favor of more explicit separation of creating consumers and consuming messages.

This example demonstrates how to Fetch messages with the new API.

CLI Go Python JavaScript Rust C# Java Ruby Elixir Crystal C