<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>墨坊 on Latent</title>
    <link>https://latent-site.pages.dev/tags/%E5%A2%A8%E5%9D%8A/</link>
    <description>Recent content in 墨坊 on Latent</description>
    <generator>Hugo</generator>
    <language>zh</language>
    <copyright>2026 Latent</copyright>
    <lastBuildDate>Wed, 14 Oct 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://latent-site.pages.dev/tags/%E5%A2%A8%E5%9D%8A/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>墨坊源码解读 · 01 | 它不是演示店面：先收下订单，再让库存和余额各自失败</title>
      <link>https://latent-site.pages.dev/posts/2026/10/ink-workshop-01-thesis/</link>
      <pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://latent-site.pages.dev/posts/2026/10/ink-workshop-01-thesis/</guid>
      <description>墨坊是一份可读的 Java 小店：网关只暴露 8080，商品库、库存、店铺各用各的库。下单先 202 收下，库存经 RabbitMQ 后扣；余额不够再发消息把库存加回去。本文钉死产品论点和分层，配架构图。仓库 &lt;a href=&#34;https://github.com/GitHub1002/ink-workshop&#34;&gt;https://github.com/GitHub1002/ink-workshop&lt;/a&gt;。</description>
    </item>
    <item>
      <title>墨坊源码解读 · 02 | 一张订单怎么活：202、发件箱、再决定能不能付款</title>
      <link>https://latent-site.pages.dev/posts/2026/10/ink-workshop-02-order-life/</link>
      <pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://latent-site.pages.dev/posts/2026/10/ink-workshop-02-order-life/</guid>
      <description>下单接口先写 PENDING 和发件箱，返回 202。两份店铺用 SKIP LOCKED 抢同一行再投递 RabbitMQ。库存结果把订单推进 RESERVED 或 REJECTED；付款只接受 RESERVED，余额不够则 RELEASING。配状态机图。</description>
    </item>
    <item>
      <title>墨坊源码解读 · 03 | 库存为什么能重试：条件更新、指纹、付款失败再加回去</title>
      <link>https://latent-site.pages.dev/posts/2026/10/ink-workshop-03-inventory/</link>
      <pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://latent-site.pages.dev/posts/2026/10/ink-workshop-03-inventory/</guid>
      <description>库存进程不共享订单表。扣减是 update … where available &amp;gt;= quantity，同一把钥匙用 SHA-256 指纹挡住换行重放。付款失败走另一条释放队列，结果仍经库存自己的发件箱回到店铺。配扣减回补图。</description>
    </item>
    <item>
      <title>墨坊源码解读 · 04 | 浏览器只能看见网关：限流、熔断、两份店铺</title>
      <link>https://latent-site.pages.dev/posts/2026/10/ink-workshop-04-gateway/</link>
      <pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://latent-site.pages.dev/posts/2026/10/ink-workshop-04-gateway/</guid>
      <description>对外只暴露 8080。网关用 lb://ink-workshop 轮转两份店铺，限流每秒 20 可从 Nacos 热更新，店铺连续失败后熔断返回 503。店面 Vite 只打网关。配边缘图。</description>
    </item>
  </channel>
</rss>
