kafka

command
v0.0.0-...-d6b3bf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 0

README

Kafka

Refer to Go社区主流Kafka客户端简要对比

This blogpost aims "write log to Kafka" as its scenario.

Manual commands

From Kafka quick start

docker-compose up -d

# Create a topic
docker exec broker \
kafka-topics --bootstrap-server broker:9092 \
--create \
--topic quickstart

# Write message to topic
docker exec --interactive --tty broker \
kafka-console-producer --bootstrap-server broker:9092 \
--topic quickstart

# Read message
docker exec --interactive --tty broker \
kafka-console-consumer --bootstrap-server broker:9092 \
--topic quickstart \
--from-beginning

docker-compose down

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL