My-Classes.com: Combining ZeroMQ and NanoMsg for Serving Web-requests


/ Published in: C++
Save to your folder(s)

A pretty simple example, that always replies 'Hello World!!' to the browser. The raw ROUTER socket is listening on tcp port 8080, so any browser that sends a request on port 8080 of localhost, will get back the response. The internal NanoMsg communication is happening on inproc channel. A dedicated thread is created for the NanoMsg worker socket (REP) that serves the responses. You can experiment with creating multiple nanoMsg worker threads and stress testing it.

URL: http://my-classes.com/2014/04/26/combining-zeromq-and-nanomsg-for-serving-web-requests/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.