Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ActiveMQ guarantee message delivery?

When we using ActiveMQ how much we can trust reliability of ActiveMQ Server. For example while developing non real time software(no need to send data instantly. But it should be send). Can we trust activeMQ as reliable source that confirm message delivery. For example i'm sending a xml file from producer. send that file to ActiveMQ confirmed ActiveMQ delivery. Then can i trust ActiveMQ and delete local copy of xml?

EDITS

When a message reached the ActiveMQ server it's reliable. How can we make sure reliability of producer Server link. In case producer is a java SE application. how ActiveMQ client handles these scenarios

  • forced shutdown of application while preparing data to send.
  • network failure while sending message.

enter image description here

like image 565
Buru Avatar asked Dec 10 '25 20:12

Buru


1 Answers

If you send to ActiveMQ using transaction and persistent delivery (pretty much default if you go by JMS) and the transaction commit successfully - yes. Then ActiveMQ have secured the message on persistent storage (usually disk).

Then, of course, a disk can crash and human mistakes and earth quakes can hit you , but otherwise, the message is ok.

like image 63
Petter Nordlander Avatar answered Dec 14 '25 08:12

Petter Nordlander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!