Messaging & Event Streaming
10 guides · about 2 hours of reading
Asynchronous messaging decouples systems, absorbs load spikes and makes integration resilient — but only if you understand what each broker actually guarantees. This subject covers the message-oriented-middleware model, the JMS API, ActiveMQ and RabbitMQ in depth, Apache Kafka's log-based architecture, and the patterns (queues, topics, exchanges, partitions, idempotent consumers) that make messaging work in production.
Who this is for
- Backend developers integrating systems
- Architects choosing between brokers
- Operators running ActiveMQ, RabbitMQ or Kafka
Learning path
Read in order for a complete course, or pick the topic you need.
- 1Message-Oriented Middleware: Queues, Topics and Why Systems Talk AsynchronouslyWhat a message broker does, how queues and topics decouple producers from consumers, which protocols exist, and how to decide when messaging beats an HTTP call.Beginner11 min read
- 2The JMS API (Jakarta Messaging 3.1): Sessions, Messages, Acknowledgement and SelectorsSend and receive messages with jakarta.jms: JMSContext, message types and headers, acknowledgement modes, selectors, durable subscriptions and request-reply.Intermediate8 min read
- 3ActiveMQ Classic 6: Installation, activemq.xml and Transport ConfigurationInstall ActiveMQ Classic 6 on Linux or Docker, read activemq.xml, configure transports, memory limits, destination policies, failover clients and networks.Intermediate9 min read
- 4ActiveMQ Classic in Production: KahaDB, High Availability, Security and MonitoringKahaDB internals, shared-store and JDBC failover, dead-letter queues, JAAS authentication, authorization, TLS and JMX/Jolokia monitoring for ActiveMQ Classic.Advanced10 min read
- 5RabbitMQ and AMQP 0-9-1: Exchanges, Bindings, Queues and RoutingThe AMQP 0-9-1 model behind RabbitMQ: channels, exchange types, bindings, quorum queues, streams, publisher confirms, acknowledgements, prefetch, dead letters.Intermediate9 min read
- 6RabbitMQ with Spring AMQP and Spring Boot: RabbitTemplate, @RabbitListener and RetriesSpring AMQP in Spring Boot 3: declare queues as beans, publish JSON with RabbitTemplate, consume with @RabbitListener, handle confirms, retries, dead letters.Intermediate7 min read
- 7Apache Kafka Architecture: Topics, Partitions, Replication, Consumer Groups and KRaftHow Kafka works as a distributed commit log: partitions and offsets, retention and compaction, replication and ISR, consumer groups and the KRaft controller.Intermediate11 min read
- 8Kafka Producers and Consumers in Java: Offsets, Idempotence and TransactionsKafka clients in Java: producer batching, acks and idempotence, the consumer poll loop, offset commits, rebalances, exactly-once transactions and Spring Kafka.Intermediate7 min read
- 9Installing and Operating Apache Kafka in KRaft Mode: Setup, CLI Tools and MonitoringInstall Kafka 3.x in KRaft mode on Linux or Docker, configure brokers and controllers, manage topics and consumer groups, monitor, secure and upgrade a cluster.Intermediate7 min read
- 10Messaging Patterns and Delivery Guarantees: Idempotency, Outbox, Retries and OrderingAt-most-once, at-least-once and exactly-once explained, plus the patterns that make messaging reliable: idempotent consumers, outbox, retries and ordering.Advanced12 min read
Continue with
Software ArchitectureLayered systems, SOA, microservices, DDD, REST and API management, reactive systems, performance, TOGAF and distributed consistency.12 guides →Spring Boot & Spring CloudBuild, configure, document, test and deploy production-ready services with Spring Boot, Spring Data, Spring Batch and Spring Cloud.11 guides →Java EE / Jakarta EEApplication servers, servlets, JSF, EJB, JMS, JPA, JTA, JAX-RS and XML processing — the enterprise Java platform and how its pieces fit together.10 guides →