ty-yoon21 / react-study1-backend-v1

Spring Boot Backend for react front
0 stars 0 forks source link

Kafka - Producer, Consumer #3

Closed ty-yoon21 closed 1 year ago

ty-yoon21 commented 1 year ago

1) Install Kafka 1.1) Install git clone https://github.com/wurstmeister/kafka-docker docker-compose -f docker-compose.yml up -d 1.2) Create TOPIC

2) Setting Kafka 2.1) build.gradle implementation 'org.springframework.kafka:spring-kafka' 2.2) applictaion.yml

3) Develop Kafka Producer, Consumer

4) Add kafka to controller

5) Check kafks docker exec -i -t kafka bash kafka-console-consumer.sh --topic reactPortalTopic --bootstrap-server localhost:9092 --from-beginning

ty-yoon21 commented 1 year ago

Check commit https://github.com/ty-yoon21/react-study1-backend-v1/commit/1de6e15b5fd52027d5fc5692a8309d9029c138cd