Simple content-based message broker for microservices written in TypeScript.
tsmq
allows you to:
- Publish messages to a topic (e.g.
Free taxis in Paris
) - Subscribe to a topic to be notified when a message is published
- Define a constraint for messages you want to receive (e.g.
In Paris
)
To install tsmq
locally, run:
git clone [email protected]:redte-ch/tsmq.git
cd tsmq
yarn install
To start the broker:
yarn start
To publish a message:
yarn publish topic="topic" "Filter"
To subscribe to a topic:
yarn subscribe topic="topic" "Filter"
To run the tests:
yarn test