Skip to content

More than a DB, more than a caché... Using gen_fsm behavior as proof of concept to be used as user state cache, focused on gamming apps

Notifications You must be signed in to change notification settings

amigos-del-rigor/ZombieLandDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZombieLandDB

More than a DB, more than a caché...

Usage

Quick start

Start ZombieLandDB:

make
erl -pa ebin deps/*/ebin -boot zldb    

Set some example data:

{ok, Pid1} = zldb_manager:get_pid_from_id("abc").
{ok, Pid2} = zldb_manager:get_pid_from_id("123").

zldb_entity:get(Pid1, id).
zldb_entity:get(Pid2, id).
zldb_entity:get(Pid1, data).
zldb_entity:get(Pid2, data).

Test

ERL_AFLAGS="-boot zldb" deps/etest/bin/etest-runner

Symfony2ErlangBundle Demo

Start ZombieLandDB as:

erl -pa ebin deps/*/ebin -boot zldb -sname node0 -setcookie abc +P 2000000

TODO

About

More than a DB, more than a caché... Using gen_fsm behavior as proof of concept to be used as user state cache, focused on gamming apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages