Learning and Using ØMQ

Related tags

Miscellaneous zguide
Overview
ØMQ - The Guide ===============

Written by Pieter Hintjens [email protected], CEO iMatix Corporation.

A ØMQ socket is what you get when you take a normal TCP socket, inject it with a mix of radioactive isotopes stolen from a secret Soviet atomic research project, bombard it with 1950-era cosmic rays, and put it into the hands of a drug-addled comic book author with a badly-disguised fetish for bulging muscles clad in spandex. Yes, ØMQ sockets are the world-saving superheros of the networking world.

1

License -------

The text of "ØMQ - The Guide" is copyright (c) 2009-2012 Pieter Hintjens, and is licensed under the Creative Commons Attribution-Share Alike 3.0 License. The source code examples are licensed under MIT/X11 unless otherwise specified in the code. The tools in /bin are placed into the public domain.

Contributions -------------

All contributions to the Guide example source code is governed by the C4 process.

Thanks ------

Thanks to all the contributors, listed in CONTRIBUTORS.

This documentation was generated from zguide/README.txt using Gitdown

Comments
  • Stonehouse and Ironhouse example

    Stonehouse and Ironhouse example

    Is there a way to incorporate the examples from your blog into the book/the guide on zeromq.org? I'm going to implement them now (even if I don't like the format of a zcert file).

    opened by metadings 9
  • fixup PR #600

    fixup PR #600

    • Restore non-C# changes lost when #600 was integrated
    • Re-integrate just the desired C# changes from #600

    @chubbson can you review the C# examples make sure they're in the desired state?

    ref: http://lists.zeromq.org/pipermail/zeromq-dev/2015-December/029903.html

    opened by calid 8
  • Epub version of ZMQ guide

    Epub version of ZMQ guide

    Hello,

    I was wondering if any epub version of the zguide was available? Is someone is interested working about this with me if it's the case?

    Best regards

    Rémy

    opened by remyleone 8
  • Java examples class name starts with lowercase

    Java examples class name starts with lowercase

    java examples class names starts with lowercase however java standard conventions states class name and file name should starts with capitalcase. I think it's because build process. but I can't understand the mechanism. Is there any possible soloution to change java example class names to correct one without breaking the build process?

    opened by esahekmat 7
  • Finish Python examples

    Finish Python examples

    Also fixed a bstarcli.py bug where the poller was not updated to poll the new client after it was created, so would perpetually failover.

    And adds the titanic/ticlient files I mentioned but forgot in the previous PR.

    opened by minrk 7
  • Add support to build example using travis-ci

    Add support to build example using travis-ci

    I think it would be a good idea to include in the travis-ci all the required steps to build the guide. I can't find the docs to build the guide easily...

    Also you need to activate travis-ci hook for this repo. It's free :-)

    opened by remyleone 6
  • ZGuide in Python zguide.zeromq.org/py:all also in C#?

    ZGuide in Python zguide.zeromq.org/py:all also in C#?

    How do you just generate this awesome link to watch the ZGuide in Python?

    zguide.zeromq.org/py:all
    

    Would you also like to make a link for the ZGuide in C#?

    zguide.zeromq.org/cs:all
    
    opened by metadings 6
  • "Read" link http://zguide.zeromq.org/page:all leads to an empty page

    http://zguide.zeromq.org/page:all

    The link leads to an empty page with just the header. This seems to break internal links as well.

    Chapter links like http://zguide.zeromq.org/py:chapter1 do work.

    opened by nikodemuz 5
  • "Getting the Context Right" restrictions

    I'm working on unit tests for code that uses 0mq and I'm finding the zguide section "Getting the Context Right" pretty restrictive.

    1. A process can only have one context.
    2. The context must be created once and destroyed once in a process.
    3. The context must be created after any fork.

    Each of my tests creates and destroys a context. Some of the tests fork to create a process to talk to. All the tests work, but clearly, I'm skiing off piste.

    Restrictions 1 and 2 can be got around using reference counting, but restriction 3 is the last straw. Is there any wiggle room here? If, for example, it were possible to create and destroy a context more than once, I could meet the other restrictions without exposing them to the application.

    opened by dherity 5
  • Want to update Go examples

    Want to update Go examples

    Hi,

    I've just started looking into ZeroMQ and noticed that the Go examples could use some love.

    The bindings from http://github.com/alecthomas/gozmq are no longer maintained and the author suggests to use the ones from Peter Kleiweg (http://github.com/pebbe/zmq[234]). The API has some slight differences. (e.g. context.Term() instead of context.Close())

    Also, the examples are missing the error handling and use debug functions (println).

    I'm happy to do the work and send in a pull request if that's OK?

    Frank

    opened by magiconair 5
  • When do you plan to make a new version of the ZGuide?

    When do you plan to make a new version of the ZGuide?

    When do you plan to make a new version of the ZGuide?

    Should I rename all the sample files to lower-cased names, for the build-script?

    https://github.com/metadings/zguide/tree/master/examples/C%23

    opened by metadings 5
  • Correct indentation

    Correct indentation

    The example wuclient.py at https://zguide.zeromq.org/docs/chapter1/#Getting-the-Message-Out has incorrect indentation at L24 (7 spaces instead of 8 spaces). This PR corrects the indentation.

    opened by PythonTryHard 0
  • "Experimental" status of ZMQ_PAIR sockets.

    First, ZeroMQ is awesome, I've been using it for years. However, I'm working on an idea that may need to transition communication from between threads into between processes, and then possibly outward even more into communication over IP. While I can obviously make this work without using ZMQ_PAIR for ipc:// or tcp://, I'm still confused regarding the state of this "experimental" status. To be honest we can only assume that this experimental status only applies to network based sockets because the documentation is not specific on that note. I believe this should be covered in a little more detail, at least to a point where a user isn't left to assume. The specific foot note I'm referring too:

    ZMQ_PAIR sockets are designed for inter-thread communication across the zmq_inproc(7) transport and do not implement functionality such as auto-reconnection. ZMQ_PAIR sockets are considered experimental and may have other missing or broken aspects.

    http://api.zeromq.org/master:zmq-socket

    [edit] I'm posting this here because I believe it's more of a documentation bug than an implementation bug. The specific behavior when using ZMQ_PAIR is understandable, and it's difference between other socket types is understandable as well given the non-trivial difference of communication between endpoints which are in fact related threads. I just feel it's a bit of a hole in the documentation when considering how well ZMQ is otherwise covered inside and out.

    opened by ClosetMonkey 6
  • C++mdworker,the example running in the linux aborted after throwing an ewhat

    C++mdworker,the example running in the linux aborted after throwing an ewhat

    I used C++example of mdwrkapi in a new solution。In the windows program, the example codes compile and run normally。In the Linux ,I used ubuntu,the same code will throw a running error 。I found that the zmq_msg_close() returned 0 in Windows but returned -1 in Linux ,and Linux throwed the e.what() of Bad address。I have no idea about this problem。

    opened by 961102ZXY 0
  • Pub-Proxy-Sub Mode,High frequency sending long message,easy to cause release error after cache application

    Pub-Proxy-Sub Mode,High frequency sending long message,easy to cause release error after cache application

    In the program, the message sending length is more than 4K bytes and the frequency is more than 1 millisecond. After a long time of execution, it is easy to produce abort error.

    Viewing the coredump information, it is easy to make mistakes when applying for or releasing the buffer size in the ZMQ API interface zmq_msg_init_size or zmq_msg_close. If the sending frequency remains unchanged, there will be no error when reducing the message length (such as 1K bytes).

    Has anyone ever had a similar problem?

    opened by PoincareX 2
  • REQ  socket drop message silently if two message coming together very fast

    REQ socket drop message silently if two message coming together very fast

    This is a reproducible message silently dropped issue with a very small changes to the lbbroker.cpp.

    https://github.com/booksbyus/zguide/blob/master/examples/C%2B%2B/lbbroker.cpp

    In the lbbroker.cpp file, a worker will be pop out from work_queue when handling a request from client thread. If we modify the line 163 from "std::string worker_addr = worker_queue.front();" to "static std::string worker_addr = worker_queue.front();", as the following picture shows. All request will be forwarded to one worker, then we can see some messages will be dropped by the REQ socket the worker. Is it normal? REQ socket cannot receive other message when the worker logic is running ?

    image

    opened by ruleil 0
A high-level machine learning and deep learning library for the PHP language.

Rubix ML A high-level machine learning and deep learning library for the PHP language. Developer-friendly API is delightful to use 40+ supervised and

Rubix 1.7k Jan 1, 2023
Rubix ML - A high-level machine learning and deep learning library for the PHP language.

A high-level machine learning and deep learning library for the PHP language. Developer-friendly API is delightful to use 40+ supervised and

Rubix 1.7k Jan 6, 2023
PHP Machine Learning Rain Forecaster is a simple machine learning experiment in predicting rain based on a few forecast indicators.

PHP Machine Learning Rain Forecaster is a simple machine learning experiment in predicting rain based on a few forecast indicators.: forecasted "HighT

null 4 Nov 3, 2021
Learning about - Basic HTML & CSS, JSON, XML, Session & Cookies, CRUD Operations in Php using MySQL and Create MVC from scratch

This Project is based on course CSC 3215. Learning about - Basic HTML & CSS, JSON, XML, Session & Cookies, CRUD Operations in Php using MySQL and Create MVC (Model–View–Controller) from scratch. Just learning about web technologies, Not focusing on UI (Bootstrap or other 3rd-Party UI libraries or frameworks).

Alvi Hasan 5 Sep 21, 2022
A laboratory for learning secure web and mobile development in a practical manner.

A laboratory for learning secure web and mobile development in a practical manner. Build your lab By provisioning local environments via docker-compos

Globo.com 741 Dec 31, 2022
Explore , Experiment with data science and machine learning.

sodiumchloride Project name : sodium chloride objective : Explore,Experiment your data with datascience and machine learning version : beta 0.1.2 rele

sodium chloride 2 Jan 9, 2022
A laboratory for learning secure web and mobile development in a practical manner

A laboratory for learning secure web and mobile development in a practical manner. Build your lab By provisioning local environments via docker-compos

Globo.com 656 Feb 25, 2022
PHP Machine Learning library

PHP-ML - Machine Learning library for PHP Fresh approach to Machine Learning in PHP. Algorithms, Cross Validation, Neural Network, Preprocessing, Feat

Jorge Casas 204 Dec 27, 2022
This is a collection of tutorials for learning how to use Docker with various tools. Contributions welcome.

Docker Tutorials and Labs At this time we are not actively adding labs to this repository. Our focus is on training.play-with-docker.com where new lab

Docker 11.1k Jan 2, 2023
PHP Machine Learning with Naive Bayes to classify the right contraceptive based on your medical history

What is php-ml-bayes PHP-ML Bayes is a Machine Learning with Naive Bayes Algorithm to classify the right contraceptive based on your medical history.

Fikri Lazuardi 2 Jan 21, 2022
Learning design patterns by implementing them in various programming languages.

design-patterns Learning design patterns by implementing them in various programming languages. Creational design patterns Creational design patterns

Paweł Tryfon 1 Dec 13, 2021
Unofficial Nest Learning Thermostat API

This is a PHP class that will allow you to monitor and control your Nest Learning Thermostat, and Nest Protect.

Guillaume Boudreau 297 Oct 28, 2022
Moodle - the world's open source learning platform

.-..-. _____ | || | /____/-.---_ .---. .---. .-.| || | .---. | | _ _ |/ _ \/ _ \/ _ || |/ __ \ * | | |

Moodle Development 4.5k Jan 1, 2023
A curated list of resources for learning about application security

Awesome AppSec A curated list of resources for learning about application security. Contains books, websites, blog posts, and self-assessment quizzes.

Paragon Initiative Enterprises 5.4k Jan 7, 2023
xAPI Integration with Saudi NELC (National Center for e-Learning)

xAPI Integration with Saudi NELC (National Center for e-Learning) The base concept of this package is to provide a simple way to send xAPI statements

MSAAQ, LLC 3 Oct 6, 2022
This repository demonstrates exemplary implementation of chat using HTTP and Websocket servers in PHP using Kraken Framework components.

This repository demonstrates exemplary implementation of chat using HTTP and Websocket servers in PHP using Kraken Framework components.

Kraken 48 Aug 11, 2021
A research raw data repository for researchers of Arba Minch University built using Codeigniter which follows MVC architecture. The front-end is build using Bootstrap.

Arba Minch University Dataset Repository This system is a research dataset repository for Arba Minch University researchers and is build using Codeign

Wuletaw Wonte 8 Jul 1, 2022
A FREE Wordpress Plugin to compress and convert images using cwebp, jpegoptim and optipng.

Squidge Is FREE WordpPress Plugin built for developers in mind compressing and convert images using jpegoptim, optipng, cwebp, and libavif. It's extre

Ainsley Clark 23 Dec 10, 2022
A bundle to handle encoding and decoding of parameters using OpenSSL and Doctrine lifecycle events.

SpecShaper Encrypt Bundle A bundle to handle encoding and decoding of parameters using OpenSSL and Doctrine lifecycle events. Features include: Master

Mark Ogilvie 48 Nov 4, 2022