Skip to main content
100%

Simplified zeromq PUSH/PULL example

✓ Published0🌍 Public
Aalper
Last edited Aug 10, 2012
Created on Aug 10, 2012

This example demonstrates a simple ZeroMQ PUSH/PULL message-passing pattern, where one process continuously generates random workloads and another receives and prints them. The pushventilator.py script uses `zmq.Context` and a PUSH socket to connect to a PULL socket bound on port 5558 by the pullsink.py process, sending random integers between 1 and 100 via `sink.send()`. The pullsink.py process uses `receiver.recv()` in a loop to display each received value, showing a real-time unidirectional data flow without any acknowledgment or synchronization beyond the initial connection.

AI-generated description

Similar vizzes