fluctor
Flux-like + Actor Model
Well, this is a library for creating a shared state across multiple instances;
Installation
npm:
npm install fluctor
What is it?
Well once you create a fluctor
object you have an immutalbe state that you can change with transactions
const Fluctor = Fluctor; var fluctor = initial: {} // initial state connection: {} // connection settings; fluctorstate // => the state fluctor tran // can be acessed as fluctor.transactions too // begin the transactions // Do the change // commit the changes (you can rollback too) ; fluctorstate // => { "foo": "bar" } is the value here and every other server
Transaction
let tran = fluctortran; tran; // Set value tran; // Delete value tran; // Appends value to an array tran; // Pops last value from array tran; // Increment Numeric value tran; // Decrement Numeric value tran ;
Roadmap
This project started as a personal need and i figured out that it should be a fully fledged library. That means there are a lot of tasks to be completed befor the library is production ready =]
- Make the thing production ready
- Make the Appenders be plugginable
- Figure out a custom p2p comunication
- Settle on a more strict role splitting among nodes
- Maybe transfer some of the core code to native code