Skip to main content

Library to quickly build ZeroMQ based applications.

Project description

Library to quickly build ZeroMQ based Python applications.

Introduction

Library to make writing applications using ZeroMQ message patterns through PyZMQ easier.

TODO: explain ZMessage and ZNode classes.

Pipeline

A ventilator sends jobs to multiple worker processes, which send the results to a sink.

Channels:

  • ventilator -> worker: jobs for the workers
  • ventilator -> sink: IDs of jobs sent to workers, so sink knows if all jobs have completed
  • worker -> sink: results
  • sink -> worker: sink sends shutdown command, when finished

Diagram:

      ventilator-------------+
          |                  |
  +-------+------+           |
  |       |      |           |
worker worker worker  ...    |
  ||      ||    ||           |
  ++------++----++           |
          ||                 |
         sink----------------+

An is a fully functional example in the examples directory (examples/pipeline_example.py).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zmq-message-patterns, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size zmq_message_patterns-0.1.0-py2.py3-none-any.whl (12.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size zmq-message-patterns-0.1.0.tar.gz (11.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page