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

Challenge: A simple chat application - RabbitMQ Tutorial

From the course: Learning RabbitMQ

Start my 1-month free trial

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…

Contents