내구성 구독자
구독자가 수신하지 않는 동안에도 메시지를 유실하지 않도록 브로커가 보관하는 EIP
구조와 동작 원리
구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)
브로커에 토픽별 durable subscriber를 등록하고 client identifier/구독자 이름으로 식별
토픽은 durable consumer별 메시지 사본을 브로커에 영속 저장하고 큐는 단일 사본 유지
구독자 오프라인 중 발행 메시지 유실 문제를 해결
기대 효과
구독자 재접속·처리까지 브로커에 저장해 전달을 보장하고 유실을 방지
트레이드오프
신뢰성은 높지만 처리량이 느려지고 영속 저장 오버헤드 발생
최소 1회 처리로 중복 전달될 수 있어 핸들러 멱등성이 필요
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
구독자 오프라인·재배포 중에도 메시지 유실이 허용되지 않는 금융 거래, 정산, 중요 시스템 업데이트, 원격 장치 명령에 적합하다.
시나리오
은행 결제·정산 플랫폼에서 일 수백만 건의 결제 이벤트를 토픽으로 발행하고, 재배포 중인 정산 서비스가 재접속 후 유실 없이 처리해야 한다. 브로커는 durable subscription과 영속 저장을 사용하고, 소비자는 ack 이후 처리 상태를 저장하며 중복을 멱등 처리한다. 운영자는 구독 커서, lag, DLQ, 스토리지 사용량을 모니터링하고 장애 시 커서 기준으로 재처리한다.
배치 원칙
- 브로커는 프로듀서·구독자와 지연이 낮은 존에 배치
- durable subscription은 토픽별 고유 client ID와 구독자 이름으로 등록
- 메시지·구독 커서·ack 상태는 브로커의 영속 볼륨 또는 DB에 저장
- 소비자는 무상태로 두고 처리 상태는 외부 저장소에 멱등하게 기록
- lag·DLQ·스토리지 모니터링을 브로커와 같은 운영 도메인에 배치
온프레미스
자체 관리 브로커의 HA·영속 스토리지·백업·복구를 설계하고, 네트워크·디스크 용량·구독자 ID 유일성·모니터링을 운영 표준에 포함한다.
클라우드
관리형 메시징/브로커의 다중 AZ·영속성·보존 기간·IAM·암호화를 확인하고, 소비자 오토스케일과 egress·데이터 레지던시를 고려한다.
Kubernetes
브로커는 StatefulSet·PVC·Headless Service로 안정 ID와 영속성을 확보하고, anti-affinity·PDB·리소스 제한·백업·Operator 기반 운영을 적용한다.
장애 대응
대표 장애는 브로커 재시작/페일오버, 구독자 장기 오프라인, 네트워크 단절, 느린 소비자로 인한 backlog, poison message 중복/재처리다. 영향 범위 확인→브로커·스토리지·구독 커서·lag 확인→페일오버/재시작→소비자 재연결 후 ack/커서 기준 멱등 재처리→DLQ 격리·재처리→백로그와 원인 기록 순으로 대응한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
구독자가 수신하지 않는 동안에도 메시지를 유실하지 않도록 브로커가 보관하는 EIP
The Durable Subscriber EIP avoids missing messages while it’s not listening for them.해결하는 문제근거 있음
구독자 오프라인 중 발행 메시지 유실 문제를 해결
How can a subscriber avoid missing messages while it’s not listening for them?주요 구성 컴포넌트·리소스근거 있음
브로커에 토픽별 durable subscriber를 등록하고 client identifier/구독자 이름으로 식별
you must ask the message broker to create a durable subscriber for that topic.데이터·에셋 배치 원칙근거 있음
토픽은 durable consumer별 메시지 사본을 브로커에 영속 저장하고 큐는 단일 사본 유지
Durable topics however are different as they must logically persist an instance of each suitable message for every durable consumer대표 유스케이스근거 있음
금융 거래, 중요 시스템 업데이트, 원격 장치 명령 등 메시지 유실 불가 업무
message loss is unacceptable, such as financial transactions, critical system updates, or commands to remote devices시나리오 예시근거 있음
퍼블리셔 발행 시 Clone mediator로 메시지를 복제·라우팅해 구독자에게 전달하는 예시
a message is duplicated and routed to the subscribers using the Clone mediator when the publisher sends a message부적합 상황·주의근거 있음
최소 1회 처리로 중복 전달될 수 있어 핸들러 멱등성이 필요
Processing remains at least once, so handlers must be idempotent.온프레미스 관점(개발·배포·운영)근거 있음
온프레미스는 애플리케이션 인근에 자체 관리 브로커를 배치해 로컬 메시징
Brokers run where the applications are: self-managed software or appliances on premises클라우드 관점(개발·배포·운영)근거 있음
클라우드에서는 관리형 메시징 서비스나 클라우드/K8s 내 브로커로 운영
Solace Cloud services in AWS, Azure or Google Cloud, or Solace-managed brokers inside your own KubernetesKubernetes 관점(개발·배포·운영)근거 있음
상태 저장 브로커는 StatefulSet·안정 네트워크 ID·영속 스토리지로 배포
Kafka requires a Kubernetes StatefulSet because it is a stateful application that needs stable network identities and persistent storage장애 대응 관점근거 있음
장애 대응 시 단일 소유권, ack 정책, 필터, lag 모니터링, poison-event 처리 점검
single ownership, acknowledgement policy, filters, lag monitoring, and poison-event handling장점근거 있음
구독자 재접속·처리까지 브로커에 저장해 전달을 보장하고 유실을 방지
durable subscriptions guarantee message delivery by storing messages on the broker until the subscriber reconnects and processes them단점·트레이드오프근거 있음
신뢰성은 높지만 처리량이 느려지고 영속 저장 오버헤드 발생
Durable subscriptions provide increased reliability but slower throughput대표 기술·도구근거 있음
Apache ActiveMQ의 durable subscriptions가 대표 구현
Apache ActiveMQ's durable subscriptions are a critical feature for building resilient messaging systems.추가 참고 문헌 (24)
- Durable Subscriber - WSO2 Integrator: MI Documentation 4.6.0 ↗
- ActiveMQ ↗
- Durable Subscriber · SWPatterns ↗
- Durable and Nondurable Subscriptions (Sun Java System Message Queue 4.3 Administration Guide) ↗
- ActiveMQ Best Practices for Durable Subscriptions ↗
- Durable Subscriber Pattern | Enterprise Messaging | GateSift ↗
- Durable Subscribers (Sun GlassFish Message Queue 4.4 Developer's Guide for Java Clients) ↗
- Creating Durable Subscriptions (The Java EE 5 Tutorial) ↗
- Ultra Cloud Core Subscriber Microservices Infrastructure - Operations Guide - SMI Cluster Manager Operations [Cisco Ultra Cloud Core - Subscriber Microservices Infrastructure] - Cisco ↗
- On-premises Kubernetes and hybrid cloud. ↗
- Tanzu for Kubernetes Operations on VxRail ↗
- Technical Overview ↗
- Amazon EKS Anywhere FAQs – Amazon Web Services ↗
- Solace Hybrid Cloud and Multi-Cloud Event Mesh | Joltek ↗
- Cloud & Deployment Shapes FAQ | Diagrid ↗
- Kafka on Kubernetes: Complete Guide to Deployment & Management ↗
- Durable Subscriptions and Consumer Checkpoints ↗
- Durable subscriptions | Materialize Documentation ↗
- Publisher-Subscriber Pattern - Azure Architecture Center | Microsoft Learn ↗
- Durable Subscription ↗
- Configuring Durable Subscriptions ↗
- Architecture Best Practices for Azure Service Bus - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- Delivery Semantics and Consistency Model | Felix ↗
- 5. Advanced Pub-Sub Patterns | ØMQ - The Guide ↗