command
Version:
v0.0.0-...-3fab713
Opens a new window with list of versions in this module.
Published: Sep 15, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.