


# 토픽 삭제 $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --delete --topic email.send # 잘 삭제됐는 지 확인하기 $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --list
# 토픽 생성 (+ 파티션 3개 생성) $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --create \ --topic email.send \ --partitions 3 # 잘 생성됐는 지 확인 $ bin/kafka-topics.sh \ --bootstrap-server localhost:9092 \ --describe --topic email.send
# email.send 토픽의 모든 메시지를 조회 (+ 파티션 정보도 같이 출력) $ bin/kafka-console-consumer.sh \ --bootstrap-server localhost:9092 \ --topic email.send \ --from-beginning \ --property print.partition=true



spring: kafka: bootstrap-servers: 15.164.96.71:9092 producer: key-serializer: org.apache.kafka.common.serialization.StringSerializer value-serializer: org.apache.kafka.common.serialization.StringSerializer properties: partitioner.class: org.apache.kafka.clients.producer.RoundRobinPartitioner

