Explore NATS Request/Reply
Prerequisites
1. Start the NATS server
% nats-server2. Start two terminal sessions
3. Change to the examples directory
% cd $GOPATH/src/github.com/nats-io/nats.go/examples4. In one terminal, run the reply client listener
% go run nats-rply/main.go help.please "OK, I CAN HELP!!!"5. In the other terminal, run the request client
最后更新于