Mule CRC32 处理器的用例

Use case for Mule CRC32 Processor

我一直在试图找出 CRC32 Processor 可能在哪些用例下使用...

文档中的示例着眼于有效载荷,但我的猜测是,在大多数情况下,有效载荷会随着消息进入流和退出流的时间而发生变化...

为了使 CRC 匹配,消息的哪一部分从头到尾都是一样的? ...

最好能举例说明何时使用它...

我发现文档也非常混乱,尤其是当它说:

The CRC32 processor acts as an enricher to generate a checksum to a message when it enters a system, then act as a filter to verify the checksum when the message leaves the system.

作为 EE 功能,我无法找到它的集成测试,这可能会阐明此过滤器的意图。

就我个人而言,我的看法是:

  • 用它来计算和验证入站消息的CRC32,
  • 使用它生成 CRC32 并将其附加到出站邮件中。