Git Product home page Git Product logo

synchrotron's Introduction

synchrotron

conduct-badge travis-badge release-badge license-badge

Synchrotron is a caching layer load balancer, in the spirit of Twemproxy and mcrouter.

archived!

After going another direction at work, this project is now archived! My hope is that some of the design can act as an inspiration, although given the heavy [email protected] basis of the project, it may be less relevant in the async/await world than I think.

Why another one?

There's a few things here:

  • I wanted to write a real piece of software in Rust, not just toy programs!
  • Twemproxy is basically deprecated
  • mcrouter is advanced but only supports memcached

Essentially, this project aims to be a mix of Twemproxy and mcrouter: memcached and Redis support with advanced features like traffic shadowing, pool warm up, and online reconfiguration... while being written in Rust: a systems programming language whose community, IMO, is second to none.

What's done?

Here is a non-exhaustive checklist of what's done and what is a serious target:

  • Redis support
  • memcached support
  • Redis pipelining support
  • basic connection multiplexing (M client conns over N server conns; configurable server connection limit)
  • advanced connection multiplexing (server backoff after failure, timeout on backend operations, etc)
  • basic routing strategies (single pool, traffic shadowing)*
  • advanced routing strategies (warm up [cold before warm], prefix routing, fallthrough, majority, fastest response)
  • distribution (modulo vs ketama) and hashing (md5 vs sha vs fnv1a) support*
  • online reconfiguration
  • metrics collection*
  • TLS support
    • while the scaffolding is present, all options may not be i.e. not all hash methods may be implemented, etc

License

Licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT)

synchrotron's People

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.