Giter Site home page Giter Site logo

kruserr / rapiddb Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 360 KB

A reasonably fast configurable embedded key-value sensor database

Home Page: https://crates.io/crates/rapiddb

License: GNU Affero General Public License v3.0

Shell 2.95% Rust 95.33% Lua 1.39% Dockerfile 0.33%
database key-value mmav sensor-database rust embedded-database embedded-kv embedded-webserver kv high-performance

rapiddb's Introduction



RapidDB

A reasonably fast configurable embedded key-value sensor database

Features

  • Lightweight embedded database
  • Simple key-value database interface
  • Simple and flexible optional embedded REST API
  • Memory first with on-disk persistence
  • Memory Mapped Append-only Vector backing storage
  • Bring your own database or API implementation
  • Store sensor data inside a sensor database

Getting Started

Docker

Run database with docker

docker run -dit --rm -p 3030:3030 --name rapiddb kruserr/rapiddb:0.1

Further install options

Use the database with curl

Write to database with curl

curl -X POST localhost:3030/api/v0/test-0 -d '{"temp":4.00}'

Read from database with curl

curl localhost:3030/api/v0/test-0/latest

Explore the API with curl

curl localhost:3030/api/v0
curl localhost:3030/api/v0/sensors
curl localhost:3030/api/v0/test-0

Explore and customize the database

The database is highly customizable, if you use the database inside your cargo project. You can interact with the db object, and explore the IDatabase interface. You can also use warp::Filter to extend the API. You can also implement the IDatabase interface yourself, for your own database. Explore the docs to learn more, or look at the examples.

Documentation

Visit the Documentation.

Examples

Visit the Examples.

rapiddb's People

Contributors

dependabot[bot] avatar kruserr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rapiddb's Issues

Implement IAsyncDatabase

Implement it such that there is a IDatabase and IAsyncDatabase, with corresponding high level implementations, such as MMAVDatabase and MMAVAsyncDatabase, while keeping the low level implementations the same or with small changes to support both high level implementations.

Remove MariaDB and Redis integration

MariaDB and Redis were exclusively used for benchmarking purposes, earlier in the project.
The way it was implemented it forced the end-user to download and build MariaDB and Redis dependencies even though they may not use this functionality.
This cleans up the codebase to better focus on the core functionality of the RapidDB project.

Redis integration may be revisited in the future.

use static dispatch in runtime

Theoretically should allow the compiler to further optimize code, which should give a performance improvement.

Emphasis on the fact that there is still no benchmark suite, such that we can not state that this is a real performance improvement but rather a theoretical one.

Enable builds without any webserver

  • extract api into rapiddb-web
  • use rapiddb-web in docker container
  • publish rapiddb-web seperatly
  • publish rapiddb without webserver
  • update documentation

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.