Cover
credit Patchbay

Patchbay

Posted Dec 20, 2019, 12:00 AM by Mathieu Ledru Mathieu Ledru

Patchbay is stripped-down service that includes the MPMC functionality. This is the Poor man's replacement for services such as ngrok, IFTTT, serverless applications.

Here, we will see how to implement a simple consumer producer, to reflect Patchbay philosophy.

As example here, we will run two consumer that will display the message returned by one consumer.

You can go to simple-patchbay-consumer

Run one Uniflow consumer by clicking on play button to run the flow.

play

Run one Node consumer by executing

node -e "$(curl -s https://uniflow.io/assets/node.js)" - --api-key={your-api-key} simple-patchbay-consumer

The two running consumers will wait for the consumer to be executed.

You can go to simple-patchbay-producer

Run Node consumer by executing

node -e "$(curl -s https://uniflow.io/assets/node.js)" - --api-key={your-api-key} simple-patchbay-producer

It will then unlock the two previously consumers. On Uniflow and Node consumers, you should then see the delivered message from the producer. 🎉

Edit this page on GitHub