Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.07 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.07 KB

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