GithubHelp home page GithubHelp logo

pyfasts3's Introduction

The Idea

The main purpose of this project is to use S3 as a backing grid file system to serve application resources (html, video, etc.) that must go through another server (apache, streaming server) before heading to the client in an extremely fast and low latency way.

The shortcoming of other implementations like s3fs are that it introduces too much latency when trying to read files. This attempt is to maintain a low latency file system with practically native throughput at the expense of always having the absolute freshest data. The data is by no means very stale, at most one request will be handled before the new file is copied in.

This program copies an S3 bucket to local storage and attempts to keep the local filesystem in sync with the S3 bucket based on changes occurring to the local system. All updates and checks are done asynchronously and as intelligently as possible. With this method you can have a file system backed by S3 that approaches local FS native speeds.

The current implementation uses fusepy, boto and a threaded Python model. The software is extremely alpha, with limited production testing.

Advantages

  • Native Speed (almost)
  • Asynchronous S3 checks
  • All content is stored locally as well as on S3

Disadvantages

  • Eventually Consistent
  • All content is stored locally as well as on S3

Trying it Out

You'll need fusepy and boto, both installable via pip or easy_install.

pip install fusepy boto

The python executable will mount the file system.

./pyfasts3.py [options] <AWS_KEY> <AWK_SECRET> <local-cache> <mount-point>

Plans

The thing that isn't done here yet is to make a notification system of some kind that can alert peers when files change. That way mass invalidations and updates can occur immediately without needing to wait for stale requests to be served.

Helping

Yep, that would be amazing. Look it over, fork it, submit patches, I'm around. I think this project has potential and I am open to any changes as long as the Idea remains the same.

pyfasts3's People

Contributors

xealot avatar

Watchers

 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.