Skip to content

2qU24Tlb/kafkaPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafkaPractice

Topic

Partition

Broker

- connect to each other

Producer:

- round robin without key
- level of ack: none, borker, broker+replica

Consumer:

- read in order within each partitions
- # of partitions -> # of consumers
- commit: at most once, a least once

CLI:

topic:

list:

kafka-topics.sh --bootstrap-server localhost:9092 --list

create:

kafka-topics.sh --bootstrap-server localhost:9092 --topic second-topic --create --partitions 3 --replication-factor 1

describe:

kafka-topics.sh --bootstrap-server localhost:9092  --topic second-topic --describe

delete:

kafka-topics.sh --bootstrap-server localhost:9092  --topic second_topic --delete

producer:

produce:

kafka-console-producer.sh --broker-list localhost:9092 --topic second-topic

consumer:

consume without group:

kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic second-topic

consume with group:

kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic second-topic --group 1

consumer group:

list

kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list

describe

kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages