This is a possible solution for adding chatrooms to your simple chat application.
(upbeat music) … - [Instructor] To add chat rooms to our application, … I'll first ask the user to specify the name of a chat room. … So Console.WriteLine. … Please specify a chat room. … And then, our chatRoomName equals Console.ReadLine. … Next, we'll change the Fanout exchange to a Direct exchange … so that we can filter the messages. … Because this exchange might still exist … from our previous challenge, … you can give the exchange a different name. … Now, I'll just go with chat2. … Now, the routing key is no longer irrelevant. … On the contrary, the combination of the direct exchange … and the routing key will allow us … to receive only the messages from our chat room. … So we'll need to change it … where we bind the queue to our exchange. … I'll just use the chatRoomName as the routing key, … and then down here, where we publish the message, … we also need to use the chatRoomName as the routing key. … Now, let's run this. … Again, Debug and Start Without Debugging, … and I'll start the application four times. …
- 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.