Git Product home page Git Product logo

cb's Introduction

cb: a framework for efficient* distribution of ephemeral** data

* if optimistic/unreliable

** mostly ephemeral

Your average wired network is very reliable. Unless something is very wrong, we may trust a LAN to deliver UDP packets. Your average gigabit Ethernet switch will efficiently broadcast or multicast these packets with very low latency and each will arrive at its destination at more or less the same time thanks to "switch fabric". However, the size of UDP packets is effectively limited to 65507 bytes and the size of Ethernet packets is effectively limited to 1500 (~9000 in some cases) bytes. Your operating system (and maybe your hardware) will "fragment" packets larger than 1500 and craft many packets of 1500 bytes or smaller. The remote machines will reassemble these packets and deliver them to the software layer.

This framework does something similar. It chops your data into pieces before delivering them to your operating system for broadcast via UDP. On the remote machines, it receives, collects, and reassembles the pieces to reconstruct your data. You may choose how big the pieces are.

Of course, there are lots of caveats and/or justifications I should add to the statements above (and I will), but for now, just deal with it.

Questions?

  • Why not TCP?
  • Why not PGM? a decent question. its overkill?
  • Why not use raw IP sockets? (because, gross)
  • What about ENet? TL;DR: it does not seem to handle broadcast/multicast
  • Why use libuv?

cb's People

Contributors

kybr avatar

Watchers

 avatar  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.