durable是为了防止宕机等异常而导致消息无法及时接收设计的。
这个对queue无太多影响,但对topic影响比较大。
本文引用
http://activemq.apache.org/how-do-durable-queues-and-topics-work.html
对queue的影响
Durable queues keep messages around persistently for any suitable consumer to consume them. Durable queues do not need to concern themselves with which consumer is going to consume the messages at some point in the future. There is just one copy of a message that any consumer in the future can consume.
对topic的影响
Durable topics however are different as they must logically persist an instance of each suitable message for every durable consumer - since each durable consumer gets their own copy of the message.
对topic影响举例说明
For example imagine a durable subscriber S starts up subscribing to topic T at time D1. Some publisher sends messages M1, M2, M3 to the topic and S will receive each of t