Skip to content

Projeto simples com producer/consumer que gera algumas mensagens num tópico.

Notifications You must be signed in to change notification settings

LeoRamos01/demoKafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demoKafka

Projeto simples com producer/consumer que gera algumas mensagens num tópico.

Rodando o Kafka

docker-compose up -d

Create topic

docker exec -it meu_kafka_kafka_1 kafka-topics.sh --create --zookeeper zookeeper:2181 -replication-factor 1 --partitions 1 --topic pastel

Criando consumer/producer para testes:

  • Producer
docker exec -it meu_kafka_kafka_1 kafka-console-producer.sh --broker-list localhost:9092 --topic pastel
  • Consumer
docker exec -it meu_kafka_kafka_1 kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic pastel --from-beginning

Como usar

http://localhost:8080/swagger-ui.html

About

Projeto simples com producer/consumer que gera algumas mensagens num tópico.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages