pyzmq-docker | Micro-services as modules with Docker and pyzmq | Microservice library

 by   NumesSanguis Python Version: Current License: BSD-3-Clause

kandi X-RAY | pyzmq-docker Summary

kandi X-RAY | pyzmq-docker Summary

pyzmq-docker is a Python library typically used in Travel, Transportation, Logistics, Architecture, Microservice, Docker applications. pyzmq-docker has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

Example repository to demonstrate how you can turn Python scripts into micro-services in Docker containers, which can communicate over ZeroMQ. The examples here can be run as just Python-Python, Docker-Docker (docker-compose) or Docker-Python (docker run). Examples are using a Publisher-Subscriber pattern to communicate. This means that the publisher micro-service just send messages out to a port, without knowing who is listening and a subscriber micro-service receiving data, without knowing where the data comes from. With ZeroMQ, only 1 micro-service can socket.bind(url) to 1 address. However, you can have unlimited micro-services socket.connect(url) to an address. This means that you can either have many-pub to 1-sub (examples in this Git repo) or 1-pub to many-sub on 1 ip:port combination.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pyzmq-docker has a low active ecosystem.
              It has 12 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              pyzmq-docker has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of pyzmq-docker is current.

            kandi-Quality Quality

              pyzmq-docker has no bugs reported.

            kandi-Security Security

              pyzmq-docker has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              pyzmq-docker is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              pyzmq-docker releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pyzmq-docker and discovered the below as its top functions. This is intended to give you an instant insight into pyzmq-docker implemented functionality, and help decide if they suit your requirements.
            • Publish data to subscriber
            • Subscribe to a ZeroMQ socket
            Get all kandi verified functions for this library.

            pyzmq-docker Key Features

            No Key Features are available at this moment for pyzmq-docker.

            pyzmq-docker Examples and Code Snippets

            No Code Snippets are available at this moment for pyzmq-docker.

            Community Discussions

            Trending Discussions on pyzmq-docker

            QUESTION

            PyZMQ Dockerized pub sub - sub won't receive messages
            Asked 2019-Jan-02 at 08:09

            I want to build a modularized system with modules communicating over ZeroMQ. To improve usability, I want to Dockerize (some) of these modules, so that users don't have to setup an environment. However, I cannot get a dockerized publisher to have its messaged received by a non-dockerized subscriber.

            System
            • Ubuntu 18.04
            • Python 3.7
            • libzmq version 4.2.5
            • pyzmq version is 17.1.2
            • Docker version 18.09.0, build 4d60db4
            Minimal test case

            zmq_sub.py

            ...

            ANSWER

            Answered 2018-Dec-17 at 14:51

            This is mostly a docker networking question, and isn't specific to pyzmq or zeromq. You would have the same issues with anything trying to connect from a container to the host.

            To be clear, in this example, you have a server running on the host (zmq_sub.py, which calls bind), and you want to connect to it from a client running inside a docker container (zmq_pub.py).

            Since the docker container is the one connecting, you don't need to do any docker port exposing or forwarding. EXPOSE and forwarding ports are only for making it possible to connect to a container (i.e. bind is called in the container), not to make outbound connections from a container, which is what's going on here.

            The main thing here is that when it comes to networking with docker, you should think of each container as a separate machine on a local network. In order to be connectable from other containers or the host, a service should bind onto all interfaces (or at least an accessible interface). Binding on localhost in a container means that only other processes in that container should be able to talk to it. Similarly, binding localhost on the host means that docker containers shouldn't be able to connect.

            So the first change is that your bind url should be:

            Source https://stackoverflow.com/questions/53802691

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pyzmq-docker

            General Docker instructions
            Docker Toolbox for Windows 7/8/10 Home
            Docker for Windows 10 Pro, Enterprise or Education
            Ubuntu: Docker and docker-compose and sudo usermod -a -G docker $USER

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/NumesSanguis/pyzmq-docker.git

          • CLI

            gh repo clone NumesSanguis/pyzmq-docker

          • sshUrl

            git@github.com:NumesSanguis/pyzmq-docker.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link