In our business requirement, we need to transmit updates to a couple of thousands of clients, distributed across the country. Thing is, many of these clients connect to us using 3g network, so, many connect/disconnect occurs... The updates we need to deliver are things like "Enterprise A can not be cashed anymore", or "Enterprise B is able to be cashed again", We were thinking in using ActiveMQ durable topics to deliver these updates. It is my understanding that once a client connects to a durable topic, even if he looses connection, whenever he gets back, he receives the messages sent to that topic while he was offline. Big question is, what if a client starts our system, but messages were sent to the durable topic he is suscribing to, previous to his subscription. This case is:
Durable Topic is created
Message 1 is sent to the Durable Topic
Message 2 is sent to the Durable Topic
Client A subscribes to Durable Topic
Message 3 is sent to the Durable Topic
Message 4 is sent to the Durable Topic
Client A goes offline
Message 5 is sent to the Durable Topic
Message 6 is sent to the Durable Topic
Client A goes online
As per ActiveMQ papers, Client A will receive messages 3 to 6 with no problem. But what about Messages 1 and 2? We can not afford to loose those messages...
Thanks in advance!