<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>后端架构 on 编程心语</title>
		<link>https://www.ithome.me/tags/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/</link>
		<description>Recent content in 后端架构 on 编程心语</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Tue, 04 Aug 2026 14:59:27 +0800</lastBuildDate>
		
			<atom:link href="https://www.ithome.me/tags/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>API 幂等性设计实战：四种方案对比与代码实现</title>
				<link>https://www.ithome.me/post/2026/07/04/api-idempotency-design-practice/</link>
				<pubDate>Sat, 04 Jul 2026 08:00:00 +0800</pubDate>
				<guid>https://www.ithome.me/post/2026/07/04/api-idempotency-design-practice/</guid>
				<description>&lt;h2 id=&#34;为什么幂等性值得你认真对待&#34;&gt;为什么幂等性值得你认真对待&lt;/h2&gt;&#xA;&lt;p&gt;你写了一个支付接口，用户点击「确认支付」后网络抖动了一下，前端自动重试。结果用户被扣了两次钱。这个场景在分布式系统中每天都在发生——网络超时、消息队列重投、用户双击按钮，任何一个都可能触发重复请求。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
