worterbuch

Crates.ioworterbuch
lib.rsworterbuch
version0.44.2
sourcesrc
created_at2022-06-21 12:02:11.371282
updated_at2024-07-11 16:51:34.157307
descriptionA message broker / database hybrid.
homepage
repositoryhttps://github.com/babymotte/worterbuch
max_upload_size
id610184
size277,049
Michael Bachmann (babymotte)

documentation

README

Wörterbuch

Wörterbuch is an in-memory key/value store that solves a use case somewhere between a database and a message broker. It's specifically designed to serve as a batteries included web server and backend data store for smaller web applications or home automation systems. You can think of it as an alternative to MQTT where you can simply look up messages without having to make a subscription or an alternative to Redis where any SET operation automatically produces a pub/sub message with the key as channel and value as message.

Keys are hierarchical paths in Wörterbuch, similarly to topics in MQTT. The default separator is a /, so a key looks something like some/worterbuch/key. Values can be retrieved by looking up the key or subscribing to it. In both cases wildcards are supported. The default single level wildcard is ?, the default multi level wildcard is # (all of these can be configured).

Getting my/key/# would return a map of all key/value pairs where the key starts with my/key/, subscribing to my/key/# will produce events for each key/value pair already in store where the key starts with my/key/ and subsequently an additional event for each SET operation for a key that starts with my/key/.

Comparison with similar solutions

Wörterbuch Redis MQTT Kafka SQL CouchDB
Publish/Subscribe Yes Optional Yes Yes No ?
Query Yes Yes No No Yes Yes
JOINed Queries* Yes No No No Yes Yes
GraphQL-like queries** Yes No No No No No
Delete Yes Yes Yes No Yes Yes
In-memory store Yes Yes Yes No No No
Persistent store Optional Optional Optional Yes Yes Yes
TCP API Yes Yes Yes Yes Yes Yes
WebSocket API Yes No Optional No No ?
HTTP API Yes No No No No Yes
Built in user management No Yes Yes Yes Yes Yes
Token based authorization Yes ? No No No ?
Accessible from web frontend Yes No No No No Yes

* Queries across different data sources (e.g. tables, topics, keys, etc.) that produce a single result containing data from those data sources

** Queries where the expected result data structure is encoded in the request

Commit count: 647

cargo fmt