Java Tutorial - Java Scipt : Synchronous versus Asynchronous Messaging

Java Tutorial - Java Scipt :

Synchronous versus Asynchronous Messaging


When we refer to messaging in the context of JMS, we’re referring to asynchronous messaging. That means that things can occur across a span of indeterminate time. In contrast, synchronous messaging is initiated, executed, and returned in a predictable sequence. Asynchronous messaging allows more freedom with regard to timing, allowing messages to be queued and processed as resources permit. This decoupling contributes to increased scalability and
load distribution. Another characteristic strength of asynchronous messagingis its ability to bridge gaps inavailability. In connecting disparate enterprise applications, you don’t want to be waiting until some distant system is finishedprocessing. Overall, JMS messaging is a valuable tool for loosening dependencies between enterprise applications.