Idempotency Barrier for messaging

旧巷老猫 提交于 2019-12-22 09:42:00

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/1194081/idempotency-barrier-for-messaging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!