Messaging
Messaging is a communication approach in which software components exchange information by sending and receiving messages.
Spring Microservices in Action
Messaging is the exchange of information between software components through messages.
- How it is used
- Coordinates asynchronous state-change notifications between microservices, such as invalidating cached organization data.
- How deep it goes
- Explains queue-based delivery, coupling, and durability, then identifies Spring Cloud Stream sources and sinks.
- Examples
- Uses organization-data changes to trigger licensing-service cache invalidation through a queue.
- What you can do after
- Apply messaging with Spring Cloud Stream to publish and consume messages through annotated Java methods.
Read how Spring Microservices in Action explains messaging →
Microservices Patterns, Second Edition
An integration technique in which software components communicate by sending and receiving messages through a messaging system.
- How it is used
- Connects services in a microservice architecture through message exchange.
- How deep it goes
- Explains message structure and traces sender, channel, adapter, and receiver responsibilities.
- Examples
- Uses an Order or Customer state change as an event example and diagrams sender-to-receiver flow.
- What you can do after
- Understand how components exchange messages through channels and adapter-connected business logic.
Read how Microservices Patterns, Second Edition explains messaging →
Also covered in
Related concepts
- loose couplingaddresses · A design property in which components have limited direct dependencies and can change or operate more independently of one another.
- asynchronous requestimplements · An asynchronous request is an interaction in which a requester sends a request without waiting for its processing to complete or for an immediate response.
- latencyproduces · Latency is the elapsed time between initiating an operation or request and receiving its corresponding result or observable response.
- Spring Cloud Streamused by · Spring Cloud Stream is a framework for building event-driven applications that connect to messaging systems through application-oriented abstractions.
- command/reply-based messagingincludes · A messaging interaction style in which a service sends a command message and another service processes it and returns a reply.
Questions about messaging
What is messaging?
Messaging is a communication approach in which software components exchange information by sending and receiving messages.
Which Manning books explain messaging?
Spring Microservices in Action and Microservices Patterns, Second Edition.
What kinds of messaging are there?
Kinds of messaging include client-side messaging and command/reply-based messaging.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

