Giter Club home page Giter Club logo

catbus's Introduction

catbus

Fast tarball transport. A content-aware transport for tar archives modelled on git upload-pack / receive-pack.

Save bytes and time when transferring a sequence of tar archives containing largely the same content over time by sourcing already received parts from a library-of-parts cache.

catbus allows you to slim down the bytes necessary to transport a given tar archive by constructing an archive on the remote end from previously received tar archives.

How it works

Generated using https://sequencediagram.org/

  1. An index of the tar archive to be transport is precomputed and stored beside the tar archives using catbus index.
  2. A receiver invokes catbus transport receive-index connected to a sender catbus transport upload-index. A reliable transport is assumed, such as SSH tunnels.
  3. The sender writes the index to the receiver
  4. The receiver tries to source the parts from the previously received local library of parts
  5. The receiver requests missing parts from the sender
  6. The sender generates an in-memory archive of the missing parts and sends it
  7. The receiver inserts the missing parts and serialises the full archive

How to build it

catbus is built using cargo and rust.

cd ~/catbus
cargo build

When to use it

catbus may be useful when you have a library of archives like application builds that you need to transport to a fleet of hosts in a network efficient manner. By pre-computing the archives from local parts we trade CPU for network bandwidth.

A minimal set of parts is then transported to each host requesting the archive based on the parts they need. A new host with no local parts will simply request the entire archive.

This is similar to how git negotiates the objects needed for a fetch but with a simpler replacement for repacking the object database over time. Instead, old parts are pruned when the transport cache is expired on a first in first out basis based on age.

catbus's People

Contributors

keithduncan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

catbus's Issues

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.