what are the advantages we get using JMS instead of using REST TEMPLATE for exchanging the information?

sanjay :

on my understandings,we use jms for exchanging the information between two or more systems,we can also use Rest Template for exchanging the information,but we use jms for exchanging the inforamtion,may i know what are the advantages we get using jms instead of using REST Template.

user10211710 :
  • Asynchronous communications : An application need to notify another that an event has occurred with no need to wait for a response.
  • Reliability. Ensure once-and-only-once message delivery. With your DB approach you have to "reinvent the wheel", specially if you have several clients reading the messages.
  • Loose coupling. Not all systems can communicate using a database. So JMS is pretty good to be used in heterogeneous environments with decoupled systems that can communicate over system boundaries.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=75083&siteId=1