토픽 생성하기

토픽 생성하기 (How to create a topic)

Apache Pulsar는 높은 성능과 낮은 지연 시간을 지원하는 분산 메시징 시스템이에요. 토픽(Topic)은 Apache Pulsar에서 데이터를 구조화하는 기본적인 방법이에요. 토픽의 각 메시지는 토픽 내에서 메시지를 고유하게 식별하는 오프셋(offset)을 가져요. 이번에는 파티셔닝된 토픽을 만들어 활용해볼게요.

출처: 문서

본문

사전 준비 (Prerequisites)

토픽 생성 (Create a topic)

토픽을 생성하려면 다음 단계를 완료해요.

  1. apache/pulsar 네임스페이스에 4개 파티션을 가진 test-topic을 만들어요.
bin/pulsar-admin topics create-partitioned-topic apache/pulsar/test-topic -p 4
  1. apache/pulsar 네임스페이스의 모든 파티셔닝된 토픽을 조회해요.
bin/pulsar-admin topics list-partitioned-topics apache/pulsar

관련 토픽 (Related Topics)

더 알아보기 (Learn more)