Message queues provide a new asynchronous way for services to communicate with each other. Compared to an API, a message queue has many advantages, such as :
NSQ is an open source realtime distributed messaging platform which is a successor from simplequeue.
The core component of the NSQ is consist of :
A single nsqd instance is designed to handle multiple streams of data at once. Streams are called “topics” and a topic has 1 or more “channels”. Each channel receives a copy of all the messages for a topic.
Both topics and channels are not pre-configured. Topics are created on first publish on the named topic or by subscribing channel on the named topic. Channels are created on the first use of subscribing to the named channel.
and both buffer data independently of each other.
nnel generally does have multiple clients connected and each message will be delivered to a random client
#nsq #golang #docker #go