GithubHelp home page GithubHelp logo

p2p-indexing-and-search's Introduction

Hyperbee

Hyperbee is P2P key/value store build on top of a Hypercore using an embedded index that projects a B-tree to find and store data.

That basically means we get to store key/value pairs efficiently where each put(key, value) just corresponds to a small append to the underlying Hypercore with the key and value plus some routing information that allows a reader to find any keys stored already in the log efficiently.

It also exposes a sorted iterator API that allows you to use the embedded index to efficiently find ranges between two keys, which is useful when you want to build generic databases with Hyperbee as a foundation.

Since Hyperbee stores all it's data in a Hypercore, it inherits all the great replication features from that, meaning it's P2P, very fast to sync only a subset, and all data is signed and secure by the writer producing the database.

The idea of "syncing only a subset" is Hyperbee's most important feature, so it's worth expanding on. Imagine you've created a huge database of Wikipedia articles, indexed by certain some attribute (perhaps the "See Also" links at the bottom). Any reader that runs the query "Find all articles that have 'See Also' links to 'Apollo 11'" will only need to download the portions of the database necessary to complete the query, in realtime. This is often a tiny fraction of the original database, depending on the size of the result set (how specific the query is).

So let's get started with comprehensive exercises on Hyperbee: Problem 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.