Subjects

All subjects Django Java Python React Spring Boot JavaScript PHP
Sign Up Free
Spring Boot 10 questions

Message Brokers and Event-Driven Architecture

Build event-driven apps using RabbitMQ or Kafka. Understand publisher-subscriber architectures, consumer queues, and message serialization.

More Spring Boot
Interview questions 1–10 of 10
1

What is Event-Driven Architecture and why is it important in microservices?

Event-driven architecture is a paradigm where components communicate through events rather than direct calls....

Read answer →
2

What is Apache Kafka and how does Spring Boot integrate with it?

Apache Kafka is a distributed event streaming platform for building real-time data pipelines. Spring Boot inte...

Read answer →
3

What is RabbitMQ and how does it differ from Kafka?

RabbitMQ is a traditional message broker using AMQP protocol for queuing. Unlike Kafka (event streaming), Rabb...

Read answer →
4

What is Spring Cloud Stream and how does it abstract message brokers?

Spring Cloud Stream provides a unified programming model for building message-driven microservices, abstractin...

Read answer →
5

What is the Saga pattern for distributed transactions?

Saga pattern manages long-running distributed transactions by breaking them into local transactions coordinate...

Read answer →
6

How does @EventListener work in Spring Boot? Compare with pub-sub and messaging.

@EventListener is Spring's built-in in-process event handling mechanism using ApplicationEventPublisher. Light...

Read answer →
7

What are Publish-Subscribe (Pub-Sub) patterns in Spring Boot?

Pub-Sub is a messaging pattern where publishers send messages to topics without knowing subscribers, and subsc...

Read answer →
8

What are Dead Letter Queues (DLQ) and how do you handle errors in message processing?

Dead Letter Queues hold messages that failed processing after retries. Spring Cloud Stream provides @ServiceAc...

Read answer →
9

How do you ensure message ordering in Kafka? What is partitioning strategy?

Message ordering in Kafka depends on partitions - messages in same partition maintain order. Use message key f...

Read answer →
10

What is Event Sourcing and how do you implement it in Spring Boot?

Event Sourcing stores application state as immutable sequence of events. Instead of storing current state, sto...

Read answer →