This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3388|Reply: 0

Recap: RabbitMQ creates custom switches and queues

[Copy link]
Posted on 5/17/2023 8:02:46 PM | | | |
Requirements: Brush up on RabbitMQ message queues, create custom switches, and bind between switches, queues, and routingKeys.

Review:

RabbitMQ: Who will create Queue and Exchange
https://www.itsvse.com/thread-10577-1-1.html

Detailed explanation of RabbitMQ AMQP message architecture
https://www.itsvse.com/thread-10348-1-1.html

RabbitMQ BasicQos consumer parallel processing limit
https://www.itsvse.com/thread-4667-1-1.html

Summary of information about ActiveMQ and RabbitMQ
https://www.itsvse.com/thread-4659-1-1.html

rabbitMQ Queue Queue Message Persistence [with source code]
https://www.itsvse.com/thread-4657-1-1.html

【Practice】rabbitMQ console to add account information
https://www.itsvse.com/thread-4655-1-1.html

An in-depth analysis of the mechanism of RabbitMQ message response
https://www.itsvse.com/thread-4639-1-1.html

.net/c# RabbitMQ connection disconnection - disconnection and reconnection
https://www.itsvse.com/thread-4636-1-1.html

Introduction to the three exchange modes (fanout, direct, and topic) of RabbitMQ
https://www.itsvse.com/thread-4635-1-1.html

【Practice】RabbitMQ installs the web management plugin
https://www.itsvse.com/thread-4631-1-1.html

【Practical Combat】RabbitMQ installation tutorial under Windows
https://www.itsvse.com/thread-4630-1-1.html

Start by creating a new .NET Framework project referenceRabbitMQ.Client.dll package, this article uses the Consumer consumer to create switches and queues, set up binding relationships (It can be created via the command line or by calling the HTTP API), as shown below:



The consumer code is as follows:

Create a producer to send a message, as shown in the following image:



The code is as follows:

Another way is to send a message to the queue, with the switch set to an empty string and the routingKey set to the queue name, as shown in the following figure:




(End)





Previous:VS merges .NET Framework (dll) assemblies using ILmerge
Next:C# EPPlus Bulk Style Cells
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com