Skip to content
Theory · NATS: subjects and queue groups · lesson 6 of 8

Request–reply

The order service needs a product's price right now and is ready to wait a second at most. A plain publish won't do: the publisher won't even learn whether anyone heard it. It needs an answer, and NATS has request–reply for that, built on the same subjects and subscriptions.

In this lesson

  • Reply subject
  • The first reply
  • No responders and time-out
  • Common mistake
  • Key points