Sample repo connecting the hyperdb to a discovery-swarm for the purpose of asking a few questions.
Derived from @cblgh's super helpful example.
Also, HUGE gratitude and thanks to @mafintosh (and everyone else contributing) for creating these building blocks. What a treasure trove of extraordinary work.
I have a few orienting questions as I start getting my hands dirty with some code.
I've posted each question as an issue to allow easy comments and discussion there for anyone who can weigh in (thanks!).
- Question #1: Using the Discovery Key
- Question #2: Swarm Setup (latest approach?)
- Question #3: Map and Reduce usage in HyperDB options
npm install # yada yada yada
Open 1..n
consoles running:
npm start
Each console creates a new hyperdb, using the initial database's dbKey
.
The demo simply writes arbitray values to the primary database on a loop (db-1
). Subsequence windows (db-2
...etc) listen and log the changes.
To delete the databases and start again:
npm run reset
- https://github.com/mafintosh/hyperdb
- https://github.com/mafintosh/discovery-swarm
- dat-ecosystem-archive/hyperdiscovery#12 (review)
- https://github.com/cblgh/hyperdb-examples (original example code I based this off)
- http://chat.datproject.org (dat project chat)