kpc
github.com/khorshuheng/kafka-protobuf-console
go get github.com/khorshuheng/kafka-protobuf-console
kpc

github.com/khorshuheng/kafka-protobuf-console

CLI tool to produce/consume Protobuf message to/from Kafka

by Khor Shu Heng

v1.0.0 (see all)
go get github.com/khorshuheng/kafka-protobuf-console
Readme

Kafka Protobuf Console

Kafka Protobuf Console is a CLI which provides the following functionalities:

  • Produce protobuf message to Kafka using Json input
  • Consume protobuf message from Kafka and displayed the message in Json format
  • Produce protobuf messages continuously to Kafka with random field values (WIP)

Installation

From source

  1. Clone the repository.
  2. The Golang version installed should be higher than v1.11.
  3. Run make install.

Compiled binary

WIP

Quick Start

Example scripts can be found within the examples directory. For convenience, a docker compose file has also been included so that the user can try using the console with minimal set up.

Kafka Protobuf Console Producer

Usage

Usage:
  kafka-protobuf-console produce [flags]

Flags:
  -b, --brokers strings     Comma separated Kafka brokers address
  -d, --descriptor string   File descriptor path
  -h, --help                help for produce
  -n, --name string         Fully qualified Proto message name
  -t, --topic string        Destination Kafka topic

Kafka Protobuf Console Consumer

Usage

Consume Protobuf message from Kafka

Usage:
  kafka-protobuf-console consume [flags]

Flags:
  -b, --brokers strings     Comma separated Kafka brokers address
  -d, --descriptor string   File descriptor path
  -f, --from-beginning      Consume from beginning
  -n, --name string         Fully qualified Proto message name
  -p, --pretty              Pretty print json output (default true)
  -t, --topic string        Destination Kafka topic
  -v, --version string      Kafka version (eg. 2.0.0)

GitHub Stars

12

LAST COMMIT

3yrs ago

MAINTAINERS

0

CONTRIBUTORS

2

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
v1.0.0
1yr ago
No alternatives found
No tutorials found
Add a tutorial