Skip to content

bankonmeblockchain/dht-mirror

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dht-mirror

Slack

DHT mirror for better read/write performance

The DHT mirror accepts writes (and returns the call immediately) and then does the actual write to the DHT in the background. Similarly, for read calls (and this is more important for reads) the calls return from the mirror instead of hitting the DHT. Keeping the mirror consistent with the DHT is actually much easier than normal circumstances because all writes are announced on the blockchain in our system. The mirror can simply watch the blockchain for updates and keep the mirror in sync with the DHT (not implemented yet).

WARNING: This repo is under active development.

To start the mirror server:

twistd -noy mirror/server.tac

Installation

On a fresh Debian / Ubuntu server:

sudo apt-get update
sudo apt-get install -y python-pip python-dev mongodb
git clone https://github.com/blockstack/dht-mirror.git
cd dht-mirror
sudo pip install -r requirements.txt

About

DHT mirror for better read/write performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%