Git Product home page Git Product logo

pad-l1-demo's Introduction

Base demo of the first PAD lab

Installation

To run this project you need Python>=3.4 (recommended 3.5). How to install it?

Pip (python package manager) should be installed with Python >= 3.4. However, if you can't find it, check out this page.

Dependencies

This project doesn't have any third-party dependencies. However, if you want to develop it, it's recommended to install dependencies from ./requirements/local.txt. Just execute

pip install -r requirements/local.txt

Running project

This project have 3 components:

  • Message broker;
  • Client-producer;
  • Client-consumer;

Message broker (src/manage.py) listens on localhost:14141 for messages from clients.

Client-producer (src/sender.py) sends each second a message, with randomly generated UUID, to the broker.

Client-consumer (src/sender.py) polls each second for a new message from the broker.

To run the broker just execute the manage.py script

python3.5 src/manage.py

To start producer and respectively consumer run

python3.5 src/sender.py

and

python3.5 src/receiver.py

Those scripts should be run from separated terminals.And they'll provide output about performed operations.

Note: Instead of python3.5 you could try to use python3.4 if you have it.

pad-l1-demo's People

Contributors

alexx-g avatar eu-david avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.