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

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