- gRPC support
- REST support
- slim docker image
docker run -d -p 50051:50051 -p 8080:8080 --name lokidb yoyocode/lokidb
$ lokidb --help
Usage of lokidb:
-cache_size int
Max number of keys to save in the RAM for fast reads (default 50000)
-files_count int
number of files to save the keys on (more files means better performance, max 1000) (default 10)
-grpc_host string
gRPC server host (default "127.0.0.1")
-grpc_port int
gRPC server port (default 50051)
-rest_host string
REST server host (default "127.0.0.1")
-rest_port int
REST server port (default 8080)
-run_grpc
Serve gRPC API (default true)
-run_rest
Serve REST API (default true)
-storage_dir string
The path where the data files will be created (default "./")
$ lokidb -storage_dir data/
2022/08/25 23:52:13 gRPC server listening at 127.0.0.1:50051
2022/08/25 23:52:13 REST server listening at 127.0.0.1:8080
The system support REST API as well as a gRPC server.
REST: OpenAPI schema.
gRPC: ProtoBuf schema.
The repo also contains an insomnia workspace (a better looking postman) with all of the requests and enviroments.