There is a last type of exchange that allows for a different approach to fine-grained filtering. In this video, learn how to add a headers exchange to your sample application.
- [Instructor] The headers exchange is the only exchange … that uses message headers for filtering. … The root and key will be ignored. … The message headers are key value pairs … that you can choose as you wish. … We can specify if all or any of the headers … much match with the x-match option. … If we use "any" then at least one header must match. … You can see in this example that the subject header … matches but the action header doesn't. … Because we're specified "any" as the value … for the x-match header, … this message will be rooted to the queue. … If we use "all" as value for the x-match option, … then all headers must match. … In this case, both the subject and the action headers match. … So the message is rooted to the queue. … However, if at least one header differs … the message will not be rooted to the queue. … Here, you can see that the action header … of the message doesn't match that of the binding. … So the message is not rooted to the queue. … First, let's delete our exchange again …
- How message-based systems are used
- The AMQP protocol
- Exchange type use cases
- Publishing to RabbitMQ
- Consuming from RabbitMQ
- Filtering messages with direct and topic exchanges
- Setting up and using authentication
- Authorizing and blocking application actions
- Tracking message contents for troubleshooting
Skill Level Beginner
DevOps Foundations: Microserviceswith Laura Stone2h 12m Advanced
What's new in this update1m 18s
1. Get to Know RabbitMQ
2. Basic Usage
3. Advanced Usage
Go further with RabbitMQ2m 35s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.