Junior — Middle
Have you had experience working with the RabbitMQ messaging system?
sobes.tech AI
Answer from AI
Yes, experience with RabbitMQ includes configuring message broker, creating and managing queues, exchanges, and bindings. RabbitMQ is used for organizing asynchronous interaction between system components.
For example, in C# you can use the RabbitMQ.Client library to send and receive messages:
using RabbitMQ.Client;
using System.Text;
var factory = new ConnectionFactory() { HostName = "localhost" };
using(var connection = factory.CreateConnection())
using(var channel = connection.CreateModel())
{
channel.QueueDeclare(queue: "hello", durable: false, exclusive: false, autoDelete: false, arguments: null);
string message = "Hello RabbitMQ!";
var body = Encoding.UTF8.GetBytes(message);
channel.BasicPublish(exchange: "", routingKey: "hello", basicProperties: null, body: body);
Console.WriteLine(" [x] Sent {0}", message);
}
Experience also includes message processing, confirmation setup, and error handling.