Plumber Relay

This page describes the many ways you can get data into the Batch platform.

Plumber Relay

​Plumber is our open source project for working with various messaging systems.

Besides offering read and write functionality, it can also be used for relaying data to Batch (which uses the gRPC API under the hood).

Relaying data using plumber is the most reliable and performant way to get data into Batch as plumber makes use of batching events which can increase your total throughput.

Relaying can be done via running the binary directly or running our plumber docker container.

Docker Relay
CLI Relay
Docker Relay
docker run --name plumber-rabbit -p 8080:8080 \

In this example, all messages sent to my_exchange that match the routing key some.routing.key will be sent to my_queue .

At that point, plumber will pick up the messages and send them to Batch using the specified token.

A full suite of environment variables are provided in for configuring plumber's relay mode.

CLI Relay
plumber relay kafka \
--address "" \
--topic new_orders

In this example, all messages from kafka topic new_orders will be automatically sent to the collection with the specified relay token.

More examples of relaying from various systems can be found in

Optimal Relay Settings


When should you use this API?



Since plumber uses the gRPC API under the hood, you should be able to reach the same throughput as using the gRPC API directly which is ~50,000 events/sec.

If you need to go higher - you can launch additional plumber instances (making sure to use the same consumer group if using Kafka).