消息的 destination 分为 queue 和 topic,而消费者称为 subscriber(订阅者)。queue 中的消息只会发送给一个订阅者,而 topic 的消息,会发送给每一个订阅者。在 broker 中,处理 queue 消息和 topic 消息的逻辑是不同的。queue 先存储消息,然后把消息分发给消费者,topic 收到消息的同时,就会分发。消息的 destination 分为 queue 和 topic,而消费者称为 subscri
消息的 destination 分为 queue 和 topic,而消费者称为 subscriber(订阅者)。queue 中的消息只会发送给一个订阅者,而 topic 的消息,会发送给每一个订阅者。在 broker 中,处理 queue 消息和 topic 消息的逻辑是不同的。queue 先存储消息,然后把消息分发给消费者,topic 收到消息的同时,就会分发。消息的 destination 分为 queue 和 topic,而消费者称为 subscri