RabbitMQ को लचकदार exchanges र bindings हरू विभिन्न messaging patterns लाई समर्थन गर्छ — work queues, publish/subscribe, routing, topics, र request/reply (RPC)। यी प्याटर्नहरू बुझ्नु RabbitMQ लाई विभिन्न सञ्चार आवश्यकताहरूका लागि प्रयोग गर्नको लागि महत्वपूर्ण छ।
Work queues (task distribution)
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 (broadcast)
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)
