Phân biệt các loại exchange trong rabbitMQ

direct: Là loại exchange mà khi bạn đẩy 1 event kèm 1 routing-key thì event này sẽ được khớp chính xác với routing-key tương ứng queue

fanout: Là loại exchange mà nó sẽ đẩy event vào bất kì cái queue nào đang nhận routing từ exchange đó

topic: Là loại exchange mà nó sẽ đẩy event vào bất kì cái queue nào mà có routing key matched theo các quy ước ký tự (*, #) 

header:  exchanges are similar to Topic exchanges, except instead of pattern matching on the routing key, they use the message header attributes for matching

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch