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.
Publish to a RabbitMQ exchange - RabbitMQ Tutorial
From the course: Learning RabbitMQ
Publish to a RabbitMQ exchange
- [Instructor] We know how our sample application works, so let's add some code to send a message. If it's not already running, start the RabbitMQ service. In the start menu, go to the RabbitMQ folder, and click on the start link. To verify that the service is running, go to localhost at port 15672, and if you see your log in screen, then your RabbitMQ service is running. To get started, in the web application, open the Nuget Package Manager. Click on the Browse tab, and search for rabbitmq.client, and go ahead and install this package. In the Controllers folder, you can open the BookingController, and add a using statement using RabbitMQ.Client. The first thing we need is a connection to the RabbitMQ instance. To create this, create a new instance of the ConnectionFactory class. The factory needs a URI. This is the uniform resource identifier. It tells the ConnectionFactory where our instance is located. You can…
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)
-
-