Request/reply pattern (client/server) in python & zeromq
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
zmq-request-client.py
zmq-response-server.py

README.md

zeromq-request-reply-pyzmq

Request/reply pattern (client/server) in python & zeromq

In this pattern, client sends a request and server replies to the request. Request sockets can connect to many servers and will be distributed to all of the servers. Request sockets will block on send if it doesn't get a reply. Replies will block on receive until a request is received. Requests and responses must be paired & successful.

To run, start up two servers on two separate ports:
python zmq-response-server.py 5546
python zmq-response-server.py 5556
And then run client ot send requests to them. python zmq-request-client.py 5546 5556