Skip to content

Conversation

kilhyeonjun
Copy link
Contributor

요구사항

  • docker 를 이용해 kafka 를 설치 및 실행하고 애플리케이션과 연결
  • 각 프레임워크 (nest.js, spring) 에 적합하게 카프카 consumer, producer 를 연동 및 테스트

작업 내용

  • docker-compose를 활용하여 로컬에 카프카 띄우기
    image
  • consumer, producer 작성 및 통합 테스트 (연동 테스트)
    image

import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.core.ProducerFactory;

@EnableKafka
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

카프카 config를 producer, consumer 두개로 나누다보니 @EnableKafka 어노테이션의 위치를 고민하다가 두파일 모두 작성했는데 다른 분들 의견도 궁금합니다.

@kilhyeonjun kilhyeonjun merged commit 2351b5b into master Nov 20, 2024
@kilhyeonjun kilhyeonjun deleted the step-17 branch November 20, 2024 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant