Sobes.tech
Junior — Middle

Have you had experience interacting with broker systems or their configuration?

sobes.tech AI

Answer from AI

Yes, I have experience working with broker systems. This typically involves setting up and using message brokers such as RabbitMQ, Apache Kafka, or ActiveMQ to facilitate message exchange between components of a distributed application.

In the setup process, I configured queues, topics, message delivery parameters, and also wrote code in Python using libraries (for example, pika for RabbitMQ or kafka-python for Kafka) to send and receive messages.

Here's an example of a simple message sender in RabbitMQ using Python with pika:

import pika

connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()

channel.queue_declare(queue='task_queue', durable=True)

channel.basic_publish(
    exchange='',
    routing_key='task_queue',
    body='Hello World!',
    properties=pika.BasicProperties(
        delivery_mode=2,  # make message persistent
    ))

print(" [x] Sent 'Hello World!'" )
connection.close()