패턴 탐색 / 서비스 아키텍처 / B095
durable subscriber

내구성 구독자

구독자가 수신하지 않는 동안에도 메시지를 유실하지 않도록 브로커가 보관하는 EIP

01 / UNDERSTAND

구조와 동작 원리

구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)

구성 요소

브로커에 토픽별 durable subscriber를 등록하고 client identifier/구독자 이름으로 식별

배치 원칙

토픽은 durable consumer별 메시지 사본을 브로커에 영속 저장하고 큐는 단일 사본 유지

해결 과제

구독자 오프라인 중 발행 메시지 유실 문제를 해결

기대 효과

구독자 재접속·처리까지 브로커에 저장해 전달을 보장하고 유실을 방지

트레이드오프

신뢰성은 높지만 처리량이 느려지고 영속 저장 오버헤드 발생

최소 1회 처리로 중복 전달될 수 있어 핸들러 멱등성이 필요

02 / APPLY

운영 및 적용 가이드

종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.

언제 사용하는가

구독자 오프라인·재배포 중에도 메시지 유실이 허용되지 않는 금융 거래, 정산, 중요 시스템 업데이트, 원격 장치 명령에 적합하다.

시나리오

은행 결제·정산 플랫폼에서 일 수백만 건의 결제 이벤트를 토픽으로 발행하고, 재배포 중인 정산 서비스가 재접속 후 유실 없이 처리해야 한다. 브로커는 durable subscription과 영속 저장을 사용하고, 소비자는 ack 이후 처리 상태를 저장하며 중복을 멱등 처리한다. 운영자는 구독 커서, lag, DLQ, 스토리지 사용량을 모니터링하고 장애 시 커서 기준으로 재처리한다.

배치 원칙

  • 브로커는 프로듀서·구독자와 지연이 낮은 존에 배치
  • durable subscription은 토픽별 고유 client ID와 구독자 이름으로 등록
  • 메시지·구독 커서·ack 상태는 브로커의 영속 볼륨 또는 DB에 저장
  • 소비자는 무상태로 두고 처리 상태는 외부 저장소에 멱등하게 기록
  • lag·DLQ·스토리지 모니터링을 브로커와 같은 운영 도메인에 배치

온프레미스

자체 관리 브로커의 HA·영속 스토리지·백업·복구를 설계하고, 네트워크·디스크 용량·구독자 ID 유일성·모니터링을 운영 표준에 포함한다.

03 / VERIFY

14개 관점별 근거

조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.

정의·개요근거 있음

구독자가 수신하지 않는 동안에도 메시지를 유실하지 않도록 브로커가 보관하는 EIP

The Durable Subscriber EIP avoids missing messages while it’s not listening for them.

mi.docs.wso2.com 원문 ↗

해결하는 문제근거 있음

구독자 오프라인 중 발행 메시지 유실 문제를 해결

How can a subscriber avoid missing messages while it’s not listening for them?

gatesift.com 원문 ↗

주요 구성 컴포넌트·리소스근거 있음

브로커에 토픽별 durable subscriber를 등록하고 client identifier/구독자 이름으로 식별

you must ask the message broker to create a durable subscriber for that topic.

docs.oracle.com 원문 ↗

데이터·에셋 배치 원칙근거 있음

토픽은 durable consumer별 메시지 사본을 브로커에 영속 저장하고 큐는 단일 사본 유지

Durable topics however are different as they must logically persist an instance of each suitable message for every durable consumer

activemq.apache.org 원문 ↗

대표 유스케이스근거 있음

금융 거래, 중요 시스템 업데이트, 원격 장치 명령 등 메시지 유실 불가 업무

message loss is unacceptable, such as financial transactions, critical system updates, or commands to remote devices

swpatterns.com 원문 ↗

시나리오 예시근거 있음

퍼블리셔 발행 시 Clone mediator로 메시지를 복제·라우팅해 구독자에게 전달하는 예시

a message is duplicated and routed to the subscribers using the Clone mediator when the publisher sends a message

mi.docs.wso2.com 원문 ↗

부적합 상황·주의근거 있음

최소 1회 처리로 중복 전달될 수 있어 핸들러 멱등성이 필요

Processing remains at least once, so handlers must be idempotent.

www.all-source.xyz 원문 ↗

온프레미스 관점(개발·배포·운영)근거 있음

온프레미스는 애플리케이션 인근에 자체 관리 브로커를 배치해 로컬 메시징

Brokers run where the applications are: self-managed software or appliances on premises

www.joltek.com 원문 ↗

클라우드 관점(개발·배포·운영)근거 있음

클라우드에서는 관리형 메시징 서비스나 클라우드/K8s 내 브로커로 운영

Solace Cloud services in AWS, Azure or Google Cloud, or Solace-managed brokers inside your own Kubernetes

www.joltek.com 원문 ↗

Kubernetes 관점(개발·배포·운영)근거 있음

상태 저장 브로커는 StatefulSet·안정 네트워크 ID·영속 스토리지로 배포

Kafka requires a Kubernetes StatefulSet because it is a stateful application that needs stable network identities and persistent storage

www.confluent.io 원문 ↗

장애 대응 관점근거 있음

장애 대응 시 단일 소유권, ack 정책, 필터, lag 모니터링, poison-event 처리 점검

single ownership, acknowledgement policy, filters, lag monitoring, and poison-event handling

www.all-source.xyz 원문 ↗

장점근거 있음

구독자 재접속·처리까지 브로커에 저장해 전달을 보장하고 유실을 방지

durable subscriptions guarantee message delivery by storing messages on the broker until the subscriber reconnects and processes them

reintech.io 원문 ↗

단점·트레이드오프근거 있음

신뢰성은 높지만 처리량이 느려지고 영속 저장 오버헤드 발생

Durable subscriptions provide increased reliability but slower throughput

docs.oracle.com 원문 ↗

대표 기술·도구근거 있음

Apache ActiveMQ의 durable subscriptions가 대표 구현

Apache ActiveMQ's durable subscriptions are a critical feature for building resilient messaging systems.

reintech.io 원문 ↗

추가 참고 문헌 (24)