From the course: Learning RabbitMQ: Efficient Message Queuing
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Challenge: A simple chat application - RabbitMQ Tutorial
From the course: Learning RabbitMQ: Efficient Message Queuing
Challenge: A simple chat application
(uplifting music) - [Narrator] As a first challenge, we'll use RabbitMQ to build a simple chat application. What I proposed is to build a console application that takes input and sends it to RabbitMQ. Each instance of the application must listen to a queue that is unique to that instance. A message that is published from one instance of the app must be rooted to the queues of all instances, and then displayed to the user. Let's see this in a diagram. The user enters some input and presses Enter. A message is published to a RabbitMQ exchange. In RabbitMQ, the message is rooted to all the queues. Each running instance of the application has its own queue. Each instance will then receive a copy of the message and display it on the screen. When you implement this, the sending application might display the message twice, once because the user entered it as input, and the second time, because it also receives the message from…
Contents
-
-
-
-
Introducing the sample application2m 22s
-
(Locked)
Publish to a RabbitMQ exchange4m 39s
-
(Locked)
Consuming from a RabbitMQ exchange4m 5s
-
(Locked)
Filter messages with direct exchanges5m 8s
-
(Locked)
Filter messages with topic exchanges5m 55s
-
(Locked)
Filter messages with headers exchanges6m 45s
-
(Locked)
Challenge: A simple chat application1m 10s
-
(Locked)
Solution: A simple chat application5m 20s
-
(Locked)
Challenge: Chatrooms1m 13s
-
(Locked)
Solution: Chatrooms2m 17s
-
-
-