stebansaa / resolver

Scalable server for resolving username -> profiledata mappings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

resolver

Overview:

Resolver is a highly scalable server for Blockchain Naming. It resolves usernames to profile data. It is blockchain-agnostic (currently uses the Namecoin blockchain) and is primarily meant for scaling read-only calls to the underlying blockchain. For achieving high throughput the resolver loads the entire namespace into a local database and memcached and then keeps the local copy consistent with the blockchain. Read-only calls don't the blockchain daemon and their scalability is completely decoupled from the scalability properties of the underlying blockchain software.

API Calls:

Example API call:

http://localhost:5000/v1/username/fredwilson

For quick deployment:

pip install -r requirements.txt
./runserver

Warmup cache and then keep memcached in sync with the blockchain:

source tools/setup_env.sh
python -m tools.warmup_cache
mkdir log
python -m tools.sync_cache

About

Scalable server for resolving username -> profiledata mappings

License:MIT License


Languages

Language:Python 97.5%Language:Shell 2.5%