Idempotency障碍消息传递 [英] Idempotency Barrier for messaging

查看:185
本文介绍了Idempotency障碍消息传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近演示文稿我看到有关 RabbitMQ 提到了使用称为幂等效障碍的消息重复数据删除功能。这只是消息混合器的一个奇特的名称,还是更具体的东西。如果是这样,究竟是什么?谷歌搜索产生的结果主要与RabbitMQ有关,几乎没有解释它是什么。

解决方案

Idempotency 是一个函数的行为,其中对函数的输出执行n次函数导致与函数相同的状态表演一次。这在消息传递环境中很有用,因为延迟消息不会导致意外行为。虽然混淆意味着消息将集中以防止重复,但幂等性意味着消息传递框架将允许多个传输和重复消息的执行,同时保持消息的多个副本的执行与一个消息的执行具有相同的结果。 / p>

A recent presentation I saw regarding RabbitMQ mentioned the use of something called an "idempotency barrier" for message de-duplication. Is this just a fancy name for a message conflator or is it something more specific. If so, what exactly is it? A google search yielded results which are mostly related to RabbitMQ, with little explanation of what it was.

解决方案

Idempotency is the behavior of a function where performing the function on the function's output n times results in the same state as the function being performed once. This is useful in a messaging environment because delayed messages do not cause unexpected behavior. While conflation implies that messages would be concentrated to prevent duplication, idempotency implies that the messaging framework would permit multiple transmissions and executions of duplicate messages, while maintaining that the execution of multiple copies of a message has the same result as execution of one message.

这篇关于Idempotency障碍消息传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆