Sobes.tech
Junior — Middle

How do you assess your skills working with RabbitMQ?

sobes.tech AI

Answer from AI

I am familiar with the basic concepts of RabbitMQ, such as exchanges, queues, bindings, and message routing. I can set up simple message exchange scenarios between services, use delivery acknowledgements, and handle delayed messages. In Node.js, I use libraries like amqplib to connect and work with RabbitMQ.

Example of a simple connection and message sending:

const amqp = require('amqplib');

async function sendMessage() {
  const connection = await amqp.connect('amqp://localhost');
  const channel = await connection.createChannel();
  const queue = 'task_queue';

  await channel.assertQueue(queue, { durable: true });
  channel.sendToQueue(queue, Buffer.from('Hello RabbitMQ'), { persistent: true });

  console.log('Message sent');
  await channel.close();
  await connection.close();
}

sendMessage();

I can work with basic scenarios, but for complex architectures and optimizations, additional study is required.