<?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://code0xff.org/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F%E4%B8%80%E8%87%B4%E6%80%A7/</link>
    <description>Recent content in 分布式系统一致性 on 记录每个瞬间</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Mon, 27 Apr 2026 09:10:12 +0800</lastBuildDate>
    
	<atom:link href="https://code0xff.org/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F%E4%B8%80%E8%87%B4%E6%80%A7/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>分布式系统双写一致性问题</title>
      <link>https://code0xff.org/post/2026/04/quota_design_decision/</link>
      <pubDate>Mon, 27 Apr 2026 09:10:12 +0800</pubDate>
      
      <guid>https://code0xff.org/post/2026/04/quota_design_decision/</guid>
      <description>&lt;p&gt;围绕 AI 平台配额管理里的“双写一致性”问题展开，重点包括：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;先把业务问题讲清楚：是否应该让 &lt;strong&gt;MySQL 中的配额账本&lt;/strong&gt; 与 &lt;strong&gt;K8s 中的真实资源占用&lt;/strong&gt; 保持实时一致&lt;/li&gt;
&lt;li&gt;从 &lt;strong&gt;FLP&lt;/strong&gt;、&lt;strong&gt;CAP&lt;/strong&gt;、&lt;strong&gt;两将军问题&lt;/strong&gt;、&lt;strong&gt;PACELC&lt;/strong&gt; 这些经典理论出发，说明“跨两个独立分布式系统做实时强一致双写”为什么在理论上不可达&lt;/li&gt;
&lt;li&gt;再落到工程实践，分析提交链路、运行期和系统层故障会如何把最终一致方案推向状态机、幂等、补偿、对账和组合爆炸&lt;/li&gt;
&lt;li&gt;最后结合 &lt;strong&gt;Google Borg / Kubernetes / AWS&lt;/strong&gt; 等业界做法，给出结论：放弃“实时库存式扣减”，采用 &lt;strong&gt;准入控制 + K8s 实时用量&lt;/strong&gt; 的方案&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    
  </channel>
</rss>