Sign inSign up

mkroli/kafka-rocksdb

By mkroli

•Updated over 5 years ago

Creates a RocksDB database from Kafka topics.

Image
0

1.3K

mkroli/kafka-rocksdb repository overview

⁠kafka-rocksdb

Creates a RocksDB database from Kafka topics.

⁠Overview

kafka-rocksdb will consume one or more Kafka⁠ topics and update a local RocksDB⁠ from the events. It will create Column-Families for each topic with the same name. The message's key will be used as key in RocksDB. Messages without key will be ignored. The message's value will be used as value in RocksDB. An empty (null) value will delete the record in RocksDB. The RocksDB database can then be used as a Secondary instance⁠ by any other application.

⁠Installation

cargo install --git https://github.com/mkroli/kafka-rocksdb.git

⁠Configuration

topics = ["test"]

[kafka]
"group.id" = "kafka_rocksdb"
"bootstrap.servers" = "localhost:9092"

[rocksdb]
"directory" = "./db"

[prometheus]
"address" = "0.0.0.0:9184"

⁠Usage

% target/release/kafka-rocksdb --help
kafka-rocksdb 0.2.0
Michael Krolikowski <[email protected]>


USAGE:
    kafka-rocksdb [FLAGS] <configuration file>

ARGS:
    <configuration file>
            Configuration file to use

FLAGS:
    -h, --help
            Prints help information

    -l, --log-to-stdout
            

    -V, --version
            Prints version information

Tag summary

Content type

Image

Digest

Size

28.4 MB

Last updated

over 5 years ago

docker pull mkroli/kafka-rocksdb