Junior
Do you have experience working with message brokers? Which ones specifically?
sobes.tech AI
Answer from AI
Yes, I have experience working with message brokers. Specifically, I have used Apache Kafka for organizing data streaming between microservices, as well as RabbitMQ for asynchronous task processing and message exchange in a distributed system.
Example of using RabbitMQ in Java with the Spring Boot library:
// Sending a message
rabbitTemplate.convertAndSend("queueName", "Hello, World!");
// Receiving a message
@RabbitListener(queues = "queueName")
public void receiveMessage(String message) {
System.out.println("Received: " + message);
}