InterviewTreedInterviewTreed
All learning paths

Data, Cloud & DevOps

Messaging & Event Streaming

Prepare for message queues, event-driven architecture, distributed messaging systems, Apache Kafka, asynchronous communication, and reliable event processing.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

Messaging fundamentals

Understand messaging as a communication mechanism between independent application components. Explore messages, producers, consumers, brokers, queues, and how messaging supports loosely coupled and distributed systems.

Start learning

Synchronous and asynchronous communication

Compare synchronous communication, where callers wait for responses, with asynchronous communication, where tasks proceed independently. Understand latency, coupling, scalability, and when each communication model is appropriate.

Start learning

Message queues and message brokers

Learn how message queues and brokers enable reliable communication between distributed applications. Explore message storage, routing, delivery, consumer processing, and the responsibilities of messaging infrastructure.

Start learning

Point-to-point messaging

Understand point-to-point messaging, where messages are delivered through a queue to a single consumer. Learn queue-based workload distribution, competing consumers, message acknowledgment, and practical use cases.

Start learning

Publish-subscribe messaging pattern

Explore the publish-subscribe pattern, where publishers send messages to topics or channels and multiple subscribers receive relevant events. Understand subscription management, message fan-out, and decoupled communication.

Start learning

Event-driven architecture

Understand event-driven architecture and how applications react to business and system events. Learn event producers, consumers, event channels, loose coupling, and the design principles behind scalable event-driven systems.

Start learning

Event-based communication

Learn how applications communicate through events that represent meaningful changes or occurrences. Explore event notification, event payloads, asynchronous reactions, and the difference between commands and events.

Start learning

Event producers and consumers

Understand the responsibilities of event producers and consumers in distributed messaging systems. Learn how producers publish events, consumers subscribe and process them, and independent components coordinate through event contracts.

Start learning

Message delivery guarantees

Explore messaging delivery guarantees and their impact on application reliability. Understand at-most-once, at-least-once, and exactly-once processing, including their trade-offs and implementation challenges.

Start learning

At-most-once delivery

Understand at-most-once delivery, where a message is delivered zero or one time without automatic redelivery. Learn how this approach reduces duplicate processing while accepting the possibility of message loss.

Start learning

At-least-once delivery

Learn how at-least-once delivery ensures messages are retried until acknowledged. Understand why duplicate deliveries can occur and how consumers use idempotency and deduplication to process messages safely.

Start learning

Exactly-once processing

Understand the challenges of achieving exactly-once processing in distributed systems. Explore transactions, idempotency, offset management, deduplication, and the distinction between broker-level guarantees and end-to-end business processing.

Start learning

Message acknowledgment

Learn how message acknowledgments communicate successful or unsuccessful message processing to brokers. Explore automatic and manual acknowledgment, negative acknowledgment, requeueing, and the effect of acknowledgment timing on reliability.

Start learning

Message ordering and sequencing

Understand message ordering and sequencing requirements in distributed messaging systems. Explore FIFO queues, partition-based ordering, sequence numbers, concurrent consumers, and techniques for preserving event order.

Start learning

Message persistence

Learn how messaging systems persist messages to storage rather than keeping them only in memory. Explore durable queues, persistent messages, storage behavior, and the relationship between persistence and recovery.

Start learning

Message durability

Understand message durability and how brokers protect messages against restarts and failures. Explore durable destinations, replicated storage, acknowledgments, and the configuration choices required for reliable message retention.

Start learning

Message expiration and TTL

Learn how message expiration and time-to-live settings control how long messages remain available. Understand queue-level and message-level TTL, expiration handling, and how expired messages can be routed or discarded.

Start learning

Dead-letter queues

Understand dead-letter queues as destinations for messages that cannot be processed successfully. Explore rejection, expiration, delivery limits, poison messages, and operational workflows for investigating and replaying failed messages.

Start learning

Retry mechanisms and exponential backoff

Learn how retry mechanisms handle temporary processing failures. Explore immediate and delayed retries, exponential backoff, jitter, retry limits, and dead-letter routing to prevent repeated failures from overwhelming services.

Start learning

Idempotent message processing

Understand idempotency and how consumers can safely process the same message multiple times without repeating its business effect. Explore idempotency keys, unique constraints, deduplication records, and transactional processing.

Start learning

Duplicate message handling

Learn why duplicate messages occur through retries, redelivery, consumer restarts, and network failures. Explore message identifiers, deduplication strategies, idempotent consumers, and safe handling of repeated events.

Start learning

Message serialization and deserialization

Understand how messaging systems convert application objects into transferable message payloads and reconstruct them at consumers. Explore serialization formats, compatibility, payload validation, and performance considerations.

Start learning

JSON, Avro, and Protobuf

Compare JSON, Apache Avro, and Protocol Buffers as message serialization formats. Understand their schemas, data representation, compatibility characteristics, payload size, and suitability for different messaging architectures.

Start learning

Message schemas and schema evolution

Learn how message schemas define event structures and data contracts between producers and consumers. Explore schema registries, backward and forward compatibility, optional fields, versioning, and safe schema evolution.

Start learning

Apache Kafka fundamentals

Understand Apache Kafka as a distributed event-streaming platform. Explore topics, partitions, producers, consumers, brokers, retention, and how Kafka supports high-throughput event pipelines and real-time data integration.

Start learning

Kafka architecture

Explore Kafka's distributed architecture, including brokers, controllers, topics, partitions, replicas, and client applications. Understand how Kafka stores ordered logs and distributes event processing across a cluster.

Start learning

Kafka brokers and clusters

Learn how Kafka brokers store and serve topic partitions within a distributed cluster. Understand broker responsibilities, cluster membership, controller coordination, metadata management, and broker failure handling.

Start learning

Topics and partitions

Understand Kafka topics as logical event categories and partitions as the units of parallelism and storage. Learn partition assignment, offsets, ordering guarantees, and how partition counts affect throughput and scalability.

Start learning

Producers and consumers

Learn how Kafka producers publish records and consumers retrieve them from topics. Explore producer serialization, partition selection, consumer polling, deserialization, and the lifecycle of record processing.

Start learning

Consumer groups

Understand Kafka consumer groups and how multiple consumers share topic partitions. Learn partition assignment, parallel processing, group coordination, scalability limits, and how consumer groups provide independent processing views.

Start learning

Consumer offsets

Learn how Kafka consumer offsets track the position of records within partitions. Explore automatic and manual commits, offset storage, replay, recovery after failure, and the relationship between offsets and delivery guarantees.

Start learning

Replication and fault tolerance

Understand Kafka replication and how partition replicas protect event data against broker failures. Explore replication factors, in-sync replicas, leader election, acknowledgments, and durability trade-offs.

Start learning

Leader and follower replicas

Learn how Kafka partition leaders handle client reads and writes while follower replicas replicate their data. Understand replica synchronization, leader election, in-sync replica membership, and recovery after broker failures.

Start learning

Kafka retention policies

Understand Kafka retention policies and how they determine how long event records remain available. Explore time-based and size-based retention, segment deletion, storage management, and consumer replay requirements.

Start learning

Kafka log compaction

Learn how Kafka log compaction retains the latest record for each key while removing superseded values. Understand compacted topics, tombstone records, cleanup policies, and use cases such as maintaining application state.

Start learning

Kafka producer configuration

Explore important Kafka producer settings, including acknowledgments, batching, compression, retries, idempotence, and delivery timeouts. Understand how producer configuration influences throughput, latency, and reliability.

Start learning

Kafka consumer configuration

Learn how Kafka consumer settings control polling, offset commits, deserialization, session timeouts, and record processing. Understand how configuration choices affect throughput, recovery, and consumer reliability.

Start learning

Kafka consumer rebalancing

Understand Kafka consumer group rebalancing and how partition ownership changes when consumers join, leave, or fail. Explore assignment strategies, cooperative rebalancing, processing interruptions, and ways to reduce unnecessary rebalances.

Start learning

Kafka transactions

Learn how Kafka transactions support atomic writes across multiple partitions and topics. Explore transactional producers, producer IDs, idempotence, transaction boundaries, and reliable consume-process-produce workflows.

Start learning

Kafka Connect

Understand Kafka Connect as a framework for integrating Kafka with external data systems. Explore source and sink connectors, workers, tasks, standalone and distributed modes, configuration, and data integration pipelines.

Start learning

Kafka Streams

Learn how Kafka Streams supports stream processing directly within application code. Explore KStream, KTable, state stores, transformations, aggregations, joins, windowing, and fault-tolerant processing.

Start learning

Stream processing fundamentals

Understand stream processing as continuous computation over unbounded event data. Explore event time, processing time, windowing, stateful operations, aggregations, and the differences between batch and streaming workloads.

Start learning

Real-time data pipelines

Learn how to design real-time data pipelines that ingest, transform, enrich, and deliver events. Explore streaming sources, message brokers, processing services, sinks, error handling, and end-to-end data flow.

Start learning

Event streaming vs message queuing

Compare event streaming platforms and traditional message queues. Understand persistent event logs, replay, consumer independence, message acknowledgment, competing consumers, and the different workloads supported by Kafka and queue-based brokers.

Start learning

RabbitMQ fundamentals

Understand RabbitMQ as a message broker based on AMQP messaging concepts. Explore producers, exchanges, queues, bindings, consumers, acknowledgments, and how RabbitMQ routes messages between application components.

Start learning

RabbitMQ exchanges and queues

Learn how RabbitMQ exchanges receive messages and route them into queues. Understand queue declaration, durability, exclusivity, auto-delete behavior, message storage, and the relationship between exchanges and queues.

Start learning

Direct, topic, fanout, and headers exchanges

Explore RabbitMQ's direct, topic, fanout, and headers exchange types. Understand how each exchange routes messages using routing keys, wildcard patterns, broadcast behavior, or message headers.

Start learning

RabbitMQ bindings and routing keys

Understand RabbitMQ bindings as routing relationships between exchanges and queues. Learn how routing keys determine message destinations and how binding patterns support flexible message distribution.

Start learning

RabbitMQ acknowledgments and persistence

Learn how RabbitMQ consumer acknowledgments control message removal and redelivery. Explore durable queues, persistent messages, publisher confirms, negative acknowledgments, and configurations for reliable delivery.

Start learning

Azure Service Bus

Understand Azure Service Bus as a managed enterprise messaging service. Explore queues, topics, subscriptions, sessions, dead-letter queues, duplicate detection, scheduled delivery, and integration with cloud applications.

Start learning

Amazon SQS and SNS

Learn how Amazon Simple Queue Service and Simple Notification Service support cloud messaging. Compare standard and FIFO SQS queues, SNS topics, fan-out patterns, visibility timeouts, subscriptions, and dead-letter queues.

Start learning

Redis Pub/Sub and Streams

Redis Pub/Sub and Streams: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

Background processing and worker services

Understand background processing and worker services as mechanisms for executing tasks outside the main request-response flow. Learn job queues, worker concurrency, scheduling, retries, graceful shutdown, and workload isolation.

Start learning

Distributed event processing

Explore how distributed applications process events across multiple services and infrastructure components. Understand event partitioning, consumer coordination, eventual consistency, failure recovery, and reliable event propagation.

Start learning

Event sourcing fundamentals

Understand event sourcing as an architectural pattern that stores state changes as an append-only sequence of events. Learn event replay, aggregate state reconstruction, event versioning, snapshots, and auditability.

Start learning

CQRS and event-driven systems

Learn Command Query Responsibility Segregation and how it separates write operations from read models. Explore command handling, event publication, projections, eventual consistency, and integration with event-driven architectures.

Start learning

Transactional outbox pattern

Understand the transactional outbox pattern for reliably publishing events when database transactions update application state. Learn how an outbox table, local transactions, polling publishers, and change data capture prevent dual-write inconsistencies.

Start learning

Saga pattern and distributed workflows

Explore the Saga pattern for coordinating long-running transactions across distributed services. Understand orchestration, choreography, compensating actions, failure recovery, and maintaining business consistency without distributed database transactions.

Start learning

Message broker security

Understand security considerations for messaging infrastructure. Explore encrypted communication, secure broker configuration, network restrictions, credential management, auditing, and protection against unauthorized message access.

Start learning

Authentication and authorization

Learn how messaging systems authenticate clients and authorize access to brokers, topics, queues, and operations. Explore credentials, certificates, role-based access control, ACLs, and least-privilege security policies.

Start learning

Monitoring and observability

Explore monitoring and observability for messaging systems using metrics, logs, traces, and alerts. Learn to track broker health, consumer lag, queue depth, processing failures, and end-to-end message flow.

Start learning

Message throughput and latency

Understand messaging throughput and latency as key measures of system performance. Learn how batching, message size, partitioning, network overhead, consumer capacity, and broker configuration affect processing efficiency.

Start learning

Scaling messaging systems

Learn how to scale messaging infrastructure to support growing event volumes and consumer workloads. Explore horizontal broker scaling, partition strategies, consumer groups, replication, capacity planning, and workload distribution.

Start learning

Handling failures and backpressure

Understand how messaging applications handle broker outages, consumer failures, slow processing, and overloaded services. Explore backpressure, bounded queues, retry policies, circuit breakers, flow control, and recovery strategies.

Start learning

Building reliable messaging architectures

Learn how to design reliable messaging architectures using appropriate delivery guarantees, durable storage, retries, idempotent consumers, dead-letter queues, monitoring, and fault tolerance. Understand how these practices work together in distributed systems.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 125 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 125 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path