Assumptions, you have tested the Publish / Subscribe model.
Open up a linux window and run the following command:
1 | stm reply --topic "coffeeshop/order/new/v1/*/ca/>" --client-name "Order Management" --message "{status: 'Accepted', orderId: '12738'}" |
Where
- –topic “coffeeshop/order/new/v1/*/ca/>”
- –client-name “Order Management”
- –message “{status: ‘Accepted’, orderId: ‘12738’}”
What this does is setup a consumer who is ready to receive messages.
Open up a linux window and run the following command:
1 | stm request --topic "coffeeshop/order/new/v1/mobile/ca/437/4334" --client-name "Third Party App" --file order.json |
Where
- –topic “coffeeshop/order/new/v1/mobile/ca/437/4334”
- –client-name “Third Party App”
- –file order.json
what this does is setup a producer and sends the contents of a file named order.json to the queue.