From the course: Learning RabbitMQ
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Chatrooms - RabbitMQ Tutorial
From the course: Learning RabbitMQ
Challenge: Chatrooms
(upbeat music) - Now that we have a simple chat application that communicates over RabbitMQ, let's step up our game and add chat rooms. This means we will no longer use a fanout exchange and send our messages to all clients. Instead, we'll route the messages to the queues of the clients that have joined the same chat room. You don't need to implement a complex mechanism to let the user choose a chat room. In its simplest form you can just let them enter some free text for a chat room name. If two users enter the same text, then they'll be in the same room. Here's a diagram that clarifies this further. When the application starts, the user first enters a chat room name. This can be any string. Then when the user enters a message we send a message to RabbitMQ. In RabbitMQ, we must ensure that the message is routed to any other clients that have entered the same chat room name. A client that specified another chat room…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Introducing the sample application2m 37s
-
(Locked)
Publish to a RabbitMQ exchange4m 21s
-
(Locked)
Consuming from a RabbitMQ exchange5m 54s
-
(Locked)
Filter messages with direct exchanges5m 40s
-
(Locked)
Filter messages with topic exchanges7m 31s
-
(Locked)
Filter messages with headers exchanges10m 11s
-
(Locked)
Challenge: A simple chat application1m 19s
-
(Locked)
Solution: A simple chat application6m 50s
-
(Locked)
Challenge: Chatrooms1m 25s
-
(Locked)
Solution: Chatrooms2m 42s
-
(Locked)
-
-