RabbitMQ z fleksibilnimi izmenjavi in vezavami podpira različne vzorce sporočanja — delovne vrste, publish/subscribe, usmerjanje, teme in request/reply (RPC). Razumevanje teh vzorcev je ključno za učinkovito uporabo RabbitMQ-ja za različne potrebe komunikacije.
Delovne vrste (distribucija nalog)
WORK QUEUE → distribute tasks among multiple WORKERS (competing consumers):
→ producer → queue → multiple consumers (each message to ONE worker) → parallel processing
→ for: distributing background work; scaling task processing
Publish/Subscribe (oddajanje)
PUB/SUB → broadcast a message to MULTIPLE consumers (each gets a copy):
→ FANOUT exchange → every bound queue gets the message → all consumers receive it
→ for: broadcasting events to all interested parties (notifications, updates)
