Coder Social home page Coder Social logo

amqpfs's Introduction

Introduction
============

AMQPFS is a "Filesystem as API" approach and implementation that works through AMQPFS, all filesystem providers are available through AMQP bus and can be distributed
in the network.

What's the point? Why one may need this? Well, this project started as a way to integrate some third-party software while maintaining no real files or directories for it. 
For example, it could be used to serve configuration files, receive logs and such. Its use is virtually unlimited.

Plus, it can also utilize multiple instances of providers for the same path which leads us to interesting fault tolerance and availability algorithms.

(Please note that AMQPFS is *very* immature at this point. Some things will definitely be changed, not all calls are implemented and I am
sure there are at least some bugs)

Requirements
============

* Erlang R13B03
* make
* gcc
* fuse (libfuse-devel on Linux or macfuse on Mac OS X)

On OS X, make sure you install MacFUSE from .dmg package. MacPorts do have macfuse package,
however, it lacks some crucial elements that target developers.

Build instructions
==================

On Mac OS X, one needs to export PKG_CONFIG_PATH like this (so that fuse.pc can be found by pkgconfig):
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

$ mkdir ./amqpfs # (for default mount point)
$ make
$ make rabbit # (in a separate terminal/screen session, as it starts RabbitMQ in the foreground)
$ make run # or
$ make run-simple # or
$ NODE=your@rabbitnode make run-mq #

Platforms Compatibilities
=========================

* Ubuntu 9.10 x86, fuse 2.7.4 (32-bit & 64-bit) *WORKS*
* Intel Mac OS X 10.5.8, macfuse 2.0.3 (hasn't been tested for a while) *SUPPOSEDLY WORKS*
* Intel Mac OS X 10.6.2, macfuse 2.0.3 *WORKS*

Examples
========

For examples, take a look at src/amqpfs_provider_base.erl, src/root_amqpfs_provider.erl, src/dot_amqpfs_provider.erl and tests/simple_amqpfs_provider.erl

Also, you can find some intro example on how to change response collection and reducing policies at https://gist.github.com/98fadf2f777b178ffbf0

Contact
=======

Feel free to contact Yurii Rashkovskii at [email protected] if you have any questions.

amqpfs's People

Contributors

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