01. Kafka 브로커-토픽 등 서버구성 상세 설명
1. Kafka Broker 설명
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e325c03e-a30d-4cb5-b1ee-b6978e4b60e8/Untitled.png)
- 서버 한 대의 급작스러운 장애 상황에 대응 가능.
- ⇒ 대부분의 kafka는 여러 대의 클러스터 형태로 구성
- 흔히, **Replication(데이터 복제)**와 함께 구성한 고가용성 구성이라고 함
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/94b9d0b6-e43d-43a6-a5c8-829f112a1df1/Untitled.png)
- topic-example 메세지 종류를 정의
- 관계형 데이터베이스에 정의
- producer → topic 을 지정하여 message를 발행하면 Broker는 해당 메세지를 하위 Partition에 안전하게 저장하게 됨
실습
vi C:\\kafka\\server.properties
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/104213ac-74c0-424d-a320-c3cfcc3c48f5/Untitled.png)
log.dirs ⇒ 저장되는 실제 파일의 위치
- 해당 디렉토리에 topic의 이름과 partition명으로 만들어진 디렉토리를 확인할 수 있다
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/26528def-4315-44be-9954-4744e9052cc2/Untitled.png)