Coder Social home page Coder Social logo

middleware_olympics's Introduction

Middleware Olympics

Middlewares are complex. Middleware comparisons are complex. There are many dimensions of tradeoffs that go into the design and implementation of middlewares, so any evaluation needs to consider many different use cases. The goal of this repo is to have a bunch of little programs to experiment with various middlewares to learn more about their pros and cons.

The Contestants

  • Raw TCP (to provide a baseline)
  • Raw UDP (to provide a baseline)
  • ROS 1
  • MQTT/RabbitMQ
  • Zenoh
  • ZeroMQ ("pure", what others use)
  • ZeroMQ (ign_transport version)
  • Native DDS
    • Fast DDS 2.0 (used to be known as Fast RTPS)
    • Eclipse Cyclone DDS
    • Connext
  • DDS via ROS 2
    • Fast DDS 2.0
    • Eclipse Cyclone DDS
    • Connext

The Events

Event Name Description Robot Application Evaluation Metric
Hello world Send strings from A to B. Nav targets Pass/fail
1KB pub/sub Send 1 KB messages at 1 kHz Arm control Latency and jitter
1MB pub/sub Send 1 MB messages at 30 Hz Raw image stream Latency and jitter
10MB pub/sub Send 10 MB messages at 10 Hz Raw point clouds Latency and jitter
Good WiFi pub/sub Various messages over ideal WiFi Mobile robots Latency and jitter
Bad WiFi pub/sub Various messages over intermittent WiFi Mobile robots Latency, jitter, drop rate, reconnect speed
Discovery Discover various (large) numbers of topics Startup Discovery time

Holding the Middleware Olympics

Refer to the README.md file in the directory for each contestant for how to set up and run the events for that contestant.

Emulating sub-optimal networks

It can be a pain to set up a "bad" network interntionally, but we can instead use tc to fake it:

Add 10ms of "fake" latency:

sudo tc qdisc add dev lo root netem delay 10ms

Remove the "fake" latency:

sudo tc qdisc del dev lo root netem

Random pro tips

When using mininet, Avahi can be doing random talking which increases the packet count unnecessarily. To stop Avahi on Ubuntu:

sudo service avahi-daemon stop

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.