Producer, Exchange, Queue, Consumer
개요: 메시지는 큐에 직접 쓰는 것이 아니라 Exchange를 거쳐 Binding된 큐로 들어갑니다.
역할
| 구성요소 | 역할 |
|---|---|
| Producer | Exchange에 publish |
| Exchange | Binding 규칙으로 라우팅 |
| Queue | 소비 대기열 |
| Consumer | 큐에서 가져와 처리 후 ACK |
Producer → Exchange → (Binding) → Queue → Consumer
입문 흐름은 RabbitMQ란?을 봅니다.
Exchange 타입은 Exchange와 Binding을 봅니다.