skip to content
szczecin 53.43N 14.55E ./start-project

Rabbit-going-NATS: share the queue easily

(nats, c#, open-source) 1 min read by Bartosz Pachołek

A small .NET worker that passes messages from a RabbitMQ queue on to NATS Pub/Sub, so one feed can reach many clients.

Originally published on LinkedIn in November 2024.

Sometimes a data feed reaches you through a RabbitMQ queue, but many clients need it. A queue hands each message to one consumer; NATS Pub/Sub hands it to everyone listening. rabbit-going-nats connects the two.

What it does

It is a small .NET worker: it consumes messages from a RabbitMQ queue and publishes each one to a NATS subject. From there, any number of subscribers receive the feed, and adding one costs nothing on the RabbitMQ side.

What is inside

  • A background Worker with separate connection handlers for RabbitMQ and NATS.
  • Configuration models with an AOT-compatible JSON context.
  • Message statistics and an HTTP monitoring endpoint.
  • Unit and integration tests, plus an end-to-end test pipeline that runs both brokers in Docker.

The tool is open source under the Apache 2.0 license on GitHub.