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 learningSynchronous 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 learningMessage 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 learningPoint-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 learningPublish-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 learningEvent-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 learningEvent-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 learningEvent 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 learningMessage 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 learningAt-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 learningAt-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 learningExactly-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 learningMessage 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 learningMessage 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 learningMessage 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 learningMessage 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 learningMessage 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 learningDead-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 learningRetry 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 learningIdempotent 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 learningDuplicate 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 learningMessage 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 learningJSON, 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 learningMessage 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 learningApache 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 learningKafka 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 learningKafka 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 learningTopics 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 learningProducers 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 learningConsumer 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 learningConsumer 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 learningReplication 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 learningLeader 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 learningKafka 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 learningKafka 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 learningKafka 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 learningKafka 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 learningKafka 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 learningKafka 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 learningKafka 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 learningKafka 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 learningStream 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 learningReal-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 learningEvent 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 learningRabbitMQ 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 learningRabbitMQ 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 learningDirect, 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 learningRabbitMQ 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 learningRabbitMQ 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 learningAzure 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 learningAmazon 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 learningRedis Pub/Sub and Streams
Redis Pub/Sub and Streams: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningBackground 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 learningDistributed 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 learningEvent 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 learningCQRS 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 learningTransactional 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 learningSaga 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 learningMessage 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 learningAuthentication 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 learningMonitoring 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 learningMessage 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 learningScaling 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 learningHandling 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 learningBuilding 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 learningPractice & 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.
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