Receiving messages based on a pattern (topics)
Run below command with antfu/ni: 💡 Use the right package manager
ni
Then run RabbitMQ server with Docker.
cd mq
sh run.sh start
Open 1st terminal with below command
nr receive "info.*"
Then open other terminal to emit message to rabbit mq
nr emit info.1 hello
nr emit info.2 demo
To run the RPC server written in Go, navigate to the go-rpc directory and run the main.go file:
cd go-rpc-server
go run main.go
then run the RPC client written in Node.js
yarn rpc-client
To run the RPC server written in Node.js
yarn rpc-server
To run the RPC client written in Go, navigate to the go-rpc-client directory and run the main.go file:
cd go-rpc-client
go run main.go '{"a": 2, "b": 3}'
nr test
👤 Huynh Duc Dung
- Website: https://productsway.com/
- Twitter: @jellydn
- Github: @jellydn
Give a ⭐️ if this project helped you!