Show Table of Contents
20.8. 重复消息的检测
20.8.1. 关于重复消息的检测
重复消息检测可以过滤重复消息而无需在应用程序里编写重复消息检测代码。您可以在 HornetQ 里配置重复消息检测。
当发送者(客户/服务器)发送消息到另外一个服务器时,有时候目标服务器(接收者)或连接在发送消息后但在发送者接收到响应以表示成功前发生故障。在这种情况下,发送者(客户)很难确定消息是否已经成功发送给预期的接收者。
发送的消息可能成功也可能不成功,这取决于目标接收者或连接何时出现故障(在发送消息之前或之后)。如果发送者(客户/服务器)决定重发最后一条消息,这可能会导致发送重复的消息。
HornetQ 为发送的消息提供了重复消息检测。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.