aeron

will a message be lost by a Aeron subscriber, if it still has not been received and the term has been rotated?


If the last message in a term is not received by a subscriber, but subsequent messages from the next term are received, would term rotation happen and the message be lost? Or are we fine as long as the message is received before the term to which it belongs is not cleaned up (garbaged collected)

I am assuming that the concept of 3 terms (Active/Dirty/Clean) apply both on the publisher and subscriber side.


Solution

  • Messages are received in order so the situation you describe cannot happen. If loss occurs then flow control will hold back the sender until the loss is recovered.