Plumber (Golang)
Plumber is a Swiss army knife CLI tool for interacting with various messaging systems.
Source Code
Installation
Install via Homebrew
Download Latest Binary
History of Plumber
Here at Batch, we're obviously big fans of messaging systems and event-driven architecture. While these paradigms make for wonderfully resilient platforms, they can be difficult to test, often requiring one-off scripts to emit whatever event is needed. This can quickly get messy, especially when dealing with serialization formats like protocol buffers.
We created Plumber as a handy tool for our engineers to test and develop our own platform, allowing any number of system components to be tested simply by emitting the necessary event with the necessary data. This tool became so indispensable to us that we decided to open-source and expand it for the benefit of the software engineering community.
What does plumber do?
Simply put: Plumber allows you to read and write data to various messaging systems via the command line, without having to write hacky scripts or learn the complicated APIs of most messaging systems.
Supported Messaging Systems
Kafka
RabbitMQ
Google Cloud Platform PubSub
MQTT
Amazon SQS
Amazon SNS (Publishing)
ActiveMQ
Azure Service Bus
NATS
Redis PubSub
Redis Streams
Writing Messages
Plumber can write the following formats:
Plumber can take your .proto definitions, a JSON representation of the message, and emit the protocol buffer message without any additional tools.
Reading Messages
In addition to outputting the raw message contents, Plumber can also automatically decode multiple serialization/wire formats and display the decoded result.
Plumber will output a JSON representation of the protobuf message
Relaying
Plumber's relay mode is used to ship messages from your messaging system directly to a Batch collection.
For more information on how to relay, check the relay docs.
Last updated