Code Monkey home page Code Monkey logo

cache-busters's Introduction

cache_busters

cache_busters is an automatic cache invalidation system. It works by listening on a database's (such as PostgreSQL or MySQL) replication protocol, and invalidating caches (such as memcached or redis) based on dirtied data.

Basic architecture:

  • Can be configured via either a simple configuration file (for individual deployments) or via a REST API (for multi-tenanted deployments).

  • A coordinator is responsible for making sure that at all times there is a live cache_busters node which is handling invalidation for a given database. It's ok if there are multiple running.

  • In a multi-tenanted deployment, configuration data is stored in a database.

  • Inside each cache_busters node, connections to a cache are stored in a variable sized pool and invalidated by LRU.

  • It never tries to repopulate a cache, only flush.

  • An example configuration file (need to figure out the REST equivalent):

    caches:
    • "127.0.0.1"
    database:

    host: "127.0.0.1" user: "root"

    on_update:
    test_table:
    • "{id}-{name}"
    animals:
    • "{id}-{name}"

TODO

  • Figure out what sort of cooperation we need to pretend to be a slave.
  • In multi-tenanted mode how does the networking for all this work out.

cache-busters's People

Contributors

alex avatar dreid avatar

Watchers

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