<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>幂等性 on PlumePHP</title><link>https://plumephp.com/tags/%E5%B9%82%E7%AD%89%E6%80%A7/</link><description>Recent content in 幂等性 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 16 Mar 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://plumephp.com/tags/%E5%B9%82%E7%AD%89%E6%80%A7/index.xml" rel="self" type="application/rss+xml"/><item><title>Webhook 重试与幂等性设计：指数退避、死信队列与去重实战</title><link>https://plumephp.com/webhook-retry-idempotency/</link><pubDate>Sat, 16 Mar 2024 00:00:00 +0000</pubDate><guid>https://plumephp.com/webhook-retry-idempotency/</guid><description>&lt;h1 id="webhook-重试与幂等性设计指数退避死信队列与去重实战"&gt;Webhook 重试与幂等性设计：指数退避、死信队列与去重实战&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; 本文是 Webhook 可靠性的实战方案：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;掌握 &lt;strong&gt;3 种重试策略&lt;/strong&gt;（固定间隔、指数退避、指数退避 + Jitter）的数学差异与适用场景&lt;/li&gt;
&lt;li&gt;实现 &lt;strong&gt;幂等性状态机&lt;/strong&gt;（at-least-once 语义下保证不重复处理）&lt;/li&gt;
&lt;li&gt;获取 &lt;strong&gt;1 份 Redis 去重代码&lt;/strong&gt;，可直接接入生产环境&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;阅读收益&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>