Coder Social home page Coder Social logo

zmq-scratch's Introduction

zmq-scratch

Scratchpad for ZeroMQ experiments

zmq-scratch's People

Contributors

ugovaretto avatar

Watchers

 avatar  avatar

zmq-scratch's Issues

Add peering example with sync server and robust communication

The current peering example requires all the peer ids to be passed on the command line.
Create version with sync server from which each broker receives notifications when a new broker connects.
No handshaking shall take place:

  • brokers register through the sync server
  • sync server notifies all brokers of new brokers
  • brokers receive the notification, along with the server back-end URI in the main loop (through polling) and connect to it

Add time checking on clients

  • replace recv with poll + recv
  • time req-reply timing
  • in case of timeouts resend the request a number of times and exit after notifying an error through a monitoring channel

Cleanup

Review samples and cleanup/add comments and READMEs with detailed explanation in each directory.

Use iterators in send_messages

Consider using iterators instead of vector reference in send_messages, this allows to send only part of the message if needed, e.g. strip REQ envelope.

Better handling of size reporting (peer brokers, ZGuide ch. 3)

  • add a peer --> size map to record available peer capacity, use std::greater as the comparison function to have the peer ordered by greater capacity
  • check predicted cloud availability by summing all the sizes in the map
  • forward messages to peer with greater predicted capacity i.e. the one at std::map::begin

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.