Chapter 4. Message Endpoints
This chapter covers
In the previous chapter, we covered message channels in detail. You now know that some channels accept subscribers to be called in an event-driven way, whereas others require polling consumers. The former enable synchronous invocation of a handler and thereby enable transactions to span both the producer and consumer. The latter offer the flexibility of even more loosely coupled interaction, but break that transaction boundary across separate threads for the producer and sender.
From the programming perspective, the event-driven model is easier to grasp. For example, the MessageHandler interface that’s central to Spring Integration is as simple as it can be: