Description
MSGQ is a messaging library for passing messages between programs on the same machine. A publisher sends messages to a named endpoint, and subscribers listen on that same endpoint. Each endpoint supports one publisher and any number of subscribers. The library is for Python, C and C++, and its core API sends and receives raw bytes. The project includes a quickstart with publisher and subscriber examples to run in separate terminals, a cheatsheet of the API, and a benchmark script for a 1 KiB cross-process ping-pong on x86 Linux. Data is copied on send and on receive, and the message queue is a ring buffer whose metadata tracks readers and read positions atomically. A fake implementation is available for deterministic testing. The library is released under the MIT License and is maintained on GitHub, where issues and pull requests are welcome, and a test script builds, lints and tests the package.…
Highlights
- Pub/sub messaging between processes on one machine
- One publisher and many subscribers per endpoint
- Python, C and C++ APIs
- Fake implementation for deterministic tests
- Benchmark script included
Ratings & Reviews
No ratings yet
Be the first to rate Msgq.
People also visit
Msgq FAQ
What is MSGQ?
A pub/sub messaging library that lets programs on the same machine exchange messages through named endpoints.
Which languages are supported?
Python, C and C++. The core API sends and receives bytes.
Is it free?
Yes. MSGQ is available under the MIT License.
Can I test code that uses it?
Yes. A fake implementation is available for deterministic testing.
What are the best Msgq alternatives?
Popular alternatives to Msgq include Blazingmq, Hermes and Fluxmq. See all Msgq alternatives
