Deploy a RabbitMQ stream queue and consume with offset tracking

domain: rabbitmq · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the stream plugin: rabbitmq-plugins enable rabbitmq_stream
  2. Declare a stream queue: set x-queue-type=stream; optionally set x-max-length-bytes and x-stream-max-segment-size-bytes to control on-disk retention
  3. Use the RabbitMQ Stream protocol client (not AMQP 0-9-1) for offset-aware consumption; connect on the stream port (default 5552)
  4. Specify an offset at subscription time: first (beginning of stream), last (tail), next (only new messages), an absolute offset integer, or a timestamp
  5. Track your consumer offset by calling storeOffset() periodically with a consumer name; the broker persists this offset as non-message data in the stream itself
  6. Resume after restart by subscribing with offset=storedOffsetOrNext using your consumer name

Known gotchas

Related routes

Create a RabbitMQ superstream (partitioned stream) and consume from it with balanced partition assignment
rabbitmq.com · 6 steps · unrated
Use RabbitMQ Streams bloom-filter message filtering to let consumers selectively read a subset of a stream
rabbitmq.com · 6 steps · unrated
Publish messages to RabbitMQ reliably using publisher confirms and configure consumers with prefetch and a dead-letter exchange
rabbitmq · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans