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: A simple chat application - RabbitMQ Tutorial
From the course: Learning RabbitMQ
Challenge: A simple chat application
(upbeat music) - [Narrator] As a first challenge, we'll use RabbitMQ to build a simple chat application. What I propose, 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 routed to the queues of all instances and then displayed to the user. Let's see this in a diagram. The user enter some input and presses enter. A message is published to a RabbitMQ exchange. In RabbitMQ, the message is routed 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 its own…
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)
-
-