Start RabbitMQ
$ cd rabbitmq
$ docker-compose up -d
Check the UI with http://localhost:15672.
username | password |
---|---|
guest | guest |
(Concurrently)[https://www.npmjs.com/package/concurrently] provides at root
$ npm start
concurrently -n "service-A,service-B" "cd service-a && npm run dev" "cd service-b && npm run dev"
Open service A with http://localhost:3100.
Then service B http://localhost:3200. Observe response in service B.
flowchart LR
P((P: Service A))
Q[[Queue]]
C1((C₁: Service B))
P --> Q --> C1
class P mermaid-producer
class Q mermaid-queue
class C1 mermaid-consumer