Why nanomsg or mangos?

Why not? Read the following:

Scalability protocols (SP) support six messaging models:

Pipeline (one-way pipe)

pipeline

pipeline

Request/reply (I ask, you answer)

reqrep

Pair (two-way radio)

reqrep

Publish/subscribe

pubsub

Survey (everybody votes)

survey

Bus (complete graph)

bus

mangos

To run the request/reply example, type the following on terminals (try it using Turnkey Linux).

./reqrep node0 tcp://127.0.0.1:40899

On another terminal,

./reqrep node1 tcp://127.0.0.1:40899

Output:

From the first terminal, output would be something like this:

NODE0: RECEIVED DATE REQUEST
NODE0: SENDING DATE Wed Oct  7 07:49:07 2015                                                                                                                  

On the other terminal, here is a sample output:

NODE1: SENDING DATE REQUEST DATE
NODE1: RECEIVED DATE Wed Oct  7 07:49:07 2015                                                                                                         

 

Advertisements

Subjectivity aside, leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s