The stream ORDERS holds orders, and they need processing. The order service runs as three instances and restarts now and then. Each order must be processed by one instance, and after a restart the service must continue from where it stopped. A plain subscription to the subject cannot give that: it gets only new messages and remembers nothing.
In this lesson
- JetStream consumer
- Durable and ephemeral
- Pull and push
- Several instances
- Common mistake
- Key points