"매 distributed pub-sub mesh — 매 central mediator 없이, broker (queue/topic) 가 routing fabric.". Broker topology는 Event-Driven Architecture 의 두 종류 중 하나 (vs Mediator topology). 매 single-purpose events 의 fan-out 에 최적. 2026년 Kafka, NATS JetStream, AWS EventBridge, Redpanda, Pulsar 가 dominant brokers.
매 핵심
매 Broker vs Mediator
측면
Broker
Mediator
Coordination
None — events fan out
Central mediator orchestrates
Coupling
Loosest
Some (mediator knows steps)
Use case
Simple fan-out, async notify
Complex multi-step workflow
Failure recovery
Each consumer handles
Mediator retries/compensates
Examples
Kafka topics, NATS subjects
Apache Camel, Step Functions
매 컴포넌트
Producer: events 의 publish.
Broker: topic/subject/queue store + routing.
Consumer: subscribe + react.
Schema Registry (Confluent, Apicurio): event contract 의 versioning.
Dead Letter Queue (DLQ): failed messages.
매 broker 종류
Log-based (Kafka, Redpanda, Pulsar): replay 가능, partitioned, ordered per partition.
Queue-based (RabbitMQ, SQS): consumed once, no replay.
Subject-based (NATS): lightweight, JetStream 으로 persistence.
// Same orderId always goes to same partition → ordered per order
awaitproducer.send({topic:'order.events',messages:[{key: order.id,// partitioner uses key hash
value: JSON.stringify(event),}],});
매 결정 기준
상황
Approach
High throughput, replay 필요
Kafka / Redpanda
Lightweight, low-latency
NATS JetStream
Cloud serverless
EventBridge, Pub/Sub
Strong work-queue + ack
RabbitMQ, SQS
Multi-tenant, geo
Pulsar
기본값: Kafka (or Redpanda — Kafka API compat) + Schema Registry + Avro/Protobuf for events.