mirror of
https://github.com/Syfaro/bkapi.git
synced 2024-11-23 23:43:05 +00:00
A fast way to look up the nearest hashes with hamming distance
365512b0c2
* Gracefully handle shutdowns. * Support prefix for NATS subjects. * Use NATS services for search. * Much better use of NATS stream/consumers. |
||
---|---|---|
.github/workflows | ||
bkapi | ||
bkapi-client | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |
bkapi
A fast way to look up hamming distance hashes.
It operates by connecting to a PostgreSQL database (DATABASE_URL
), selecting
every column of a provided query (DATABASE_QUERY
), subscribing to events
(DATABASE_SUBSCRIBE
), and holding everything in a BK tree.
It provides a single API endpoint, /search
which takes in a hash
and
distance
query parameter to search for matches.