nsq
nsq copied to clipboard
async rpc calls in put messages to clusters
Async rpc calls introduced in put message to nsqd slave,instead of message synchronization between each slave nsqd one by one. master nsqd calls each nsqd in async way, then listen for responses from slaves.
Time elapse of nsqd in two message synchronization way(async and sync), with nsqd cluster show in above pic.

commit in https://github.com/absolute8511/nsq/commit/0066f340091120cd36d9381e9ce0503fede51983
PutMessageToCluster & PutMessagesToCluster are async