<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>所有文章 - Walson Blog</title>
        <link>https://walson.de5.net/posts/</link>
        <description>所有文章 | Walson Blog</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>475166676@qq.com (Walson)</managingEditor>
            <webMaster>475166676@qq.com (Walson)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Fri, 24 Apr 2026 10:00:00 &#43;0800</lastBuildDate><atom:link href="https://walson.de5.net/posts/" rel="self" type="application/rss+xml" /><item>
    <title>积分并发扣款竞态 Bug 复盘：从 Lost Update 到三重防护</title>
    <link>https://walson.de5.net/posts/concurrent-credit-deduction-bug-postmortem/</link>
    <pubDate>Fri, 24 Apr 2026 10:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/concurrent-credit-deduction-bug-postmortem/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>最近在我们的 AI 生成平台上遇到了一个 P0 级别的并发 Bug——用户同时发起多个生成任务时，积分扣款出现了竞态条件，导致积分被永久锁住。从发现到修复经历了两轮迭代（紧急修复 → 优化重构），本文完整记录这次复盘过程。</p>]]></description>
</item>
<item>
    <title>OpenClaw 调教手册：从“能用”到“离不开”</title>
    <link>https://walson.de5.net/posts/openclaw-tuning-manual-verbatim/</link>
    <pubDate>Thu, 26 Feb 2026 18:05:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/openclaw-tuning-manual-verbatim/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>这篇教程是折腾 OpenClaw 一个多月、踩了无数坑之后总结出来的实战经验。不是翻译官方文档，是真金白银的 token 烧出来的。每一个配置、每一个 &ldquo;推荐值&rdquo; 都是反复试错后的结论。</p>]]></description>
</item>
<item>
    <title>从零构建长期记忆系统：逆向分析 ChatGPT 与 Claude 客户端实现</title>
    <link>https://walson.de5.net/posts/chatgpt-claude-long-term-memory-system/</link>
    <pubDate>Fri, 06 Feb 2026 12:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/chatgpt-claude-long-term-memory-system/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>如果曾经深入使用过ChatGPT或Claude，一定会注意他们的记忆功能：他们似乎记得你，能够在新的对话中回忆起你的偏好、背景信息，甚至几周前讨论过的话题细节。这种跨会话的记忆能力，远远超出了单次对话中的上下文窗口管理，背后是一套精心设计的长期记忆系统。</p>]]></description>
</item>
<item>
    <title>OpenClaw VPS部署方案</title>
    <link>https://walson.de5.net/posts/openclaw-deployment-guide/</link>
    <pubDate>Sat, 31 Jan 2026 10:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/openclaw-deployment-guide/</guid>
    <description><![CDATA[<p><strong>最新部署日期</strong>: 2026年3月3日<br>
<strong>版本</strong>: Gateway v2026.3.2<br>
<strong>状态</strong>: 生产就绪</p>
<hr>
<h2 id="架构概览">架构概览</h2>
<h3 id="整体架构图">整体架构图</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-">
        <span class="code-title"><i class="arrow fas fa-angle-right fa-fw" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h fa-fw" aria-hidden="true"></i></span>
        <span class="copy" title="复制到剪贴板"><i class="far fa-copy fa-fw" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">┌─────────────────────────────────────────────────────────────┐
</span></span><span class="line"><span class="cl">│                      外部访问层                              │
</span></span><span class="line"><span class="cl">│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐      │
</span></span><span class="line"><span class="cl">│  │   Telegram   │  │  Control UI  │  │    SSH       │      │
</span></span><span class="line"><span class="cl">│  │   Bot API    │  │   (HTTP)     │  │   管理       │      │
</span></span><span class="line"><span class="cl">│  └──────┬───────┘  └──────┬───────┘  └──────┬───────┘      │
</span></span><span class="line"><span class="cl">└─────────┼─────────────────┼─────────────────┼───────────────┘
</span></span><span class="line"><span class="cl">          │                 │                 │
</span></span><span class="line"><span class="cl">          ▼                 ▼                 ▼
</span></span><span class="line"><span class="cl">┌─────────────────────────────────────────────────────────────┐
</span></span><span class="line"><span class="cl">│                    AWS EC2 服务器                            │
</span></span><span class="line"><span class="cl">│  实例ID: &lt;your-ec2-instance-id&gt;                             │
</span></span><span class="line"><span class="cl">│  公网IP: &lt;your-ec2-ip&gt;                                      │
</span></span><span class="line"><span class="cl">│  类型: t3.small (2 vCPU, 2GB RAM)                           │
</span></span><span class="line"><span class="cl">│  系统: Amazon Linux 2023                                    │
</span></span><span class="line"><span class="cl">│                                                             │
</span></span><span class="line"><span class="cl">│  ┌───────────────────────────────────────────────────────┐  │
</span></span><span class="line"><span class="cl">│  │         OpenClaw Gateway v2026.3.2                  │  │
</span></span><span class="line"><span class="cl">│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐   │  │
</span></span><span class="line"><span class="cl">│  │  │  Telegram   │  │  WebSocket  │  │  HTTP API   │   │  │
</span></span><span class="line"><span class="cl">│  │  │   通道      │  │  服务器     │  │  接口       │   │  │
</span></span><span class="line"><span class="cl">│  │  │             │  │ (端口:18789)│  │ (端口:18789)│   │  │
</span></span><span class="line"><span class="cl">│  │  └──────┬──────┘  └──────┬──────┘  └──────┬──────┘   │  │
</span></span><span class="line"><span class="cl">│  │         │                │                 │          │  │
</span></span><span class="line"><span class="cl">│  │         └────────────────┴─────────────────┘          │  │
</span></span><span class="line"><span class="cl">│  │                          │                            │  │
</span></span><span class="line"><span class="cl">│  │              ┌───────────┴───────────┐                │  │
</span></span><span class="line"><span class="cl">│  │              │   Agent 处理引擎      │                │  │
</span></span><span class="line"><span class="cl">│  │              │   (AI 模型: GPT-OSS) │                │  │
</span></span><span class="line"><span class="cl">│  │              └───────────┬───────────┘                │  │
</span></span><span class="line"><span class="cl">│  │                          │                            │  │
</span></span><span class="line"><span class="cl">│  │              ┌───────────┴───────────┐                │  │
</span></span><span class="line"><span class="cl">│  │              │   工具层              │                │  │
</span></span><span class="line"><span class="cl">│  │              │   web_search, web_fetch, cron          │  │
</span></span><span class="line"><span class="cl">│  │              └───────────┴───────────┘                │  │
</span></span><span class="line"><span class="cl">│  └───────────────────────────────────────────────────────┘  │
</span></span><span class="line"><span class="cl">└─────────────────────────────────────────────────────────────┘</span></span></code></pre></div></div>
<h3 id="数据流向">数据流向</h3>
<ol>
<li><strong>用户 → Telegram Bot</strong>: 发送消息</li>
<li><strong>Gateway → Agent</strong>: 处理消息，决定行动</li>
<li><strong>Agent 执行工具</strong>: 使用 web_search、web_fetch、cron 等工具</li>
<li><strong>结果 → Gateway → Telegram</strong>: 返回执行结果</li>
</ol>
<hr>
<h2 id="组件清单">组件清单</h2>
<h3 id="ec2-服务器-aws">EC2 服务器 (AWS)</h3>
<table>
  <thead>
      <tr>
          <th>组件</th>
          <th>版本/配置</th>
          <th>状态</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>实例类型</td>
          <td>t3.small</td>
          <td>✅ 运行中</td>
      </tr>
      <tr>
          <td>操作系统</td>
          <td>Amazon Linux 2023</td>
          <td>✅ 已配置</td>
      </tr>
      <tr>
          <td>Node.js</td>
          <td>v22.22.0</td>
          <td>✅ 已安装</td>
      </tr>
      <tr>
          <td>OpenClaw Gateway</td>
          <td>v2026.3.2</td>
          <td>✅ 运行中</td>
      </tr>
      <tr>
          <td>SSH 服务</td>
          <td>OpenSSH 9.x</td>
          <td>✅ 已加固</td>
      </tr>
      <tr>
          <td>Swap</td>
          <td>2GB</td>
          <td>✅ 已配置</td>
      </tr>
      <tr>
          <td>SSM Agent</td>
          <td>v3.3.x</td>
          <td>✅ 已启用</td>
      </tr>
      <tr>
          <td>IAM Role</td>
          <td>EC2-SSM-Role</td>
          <td>✅ 已挂载</td>
      </tr>
  </tbody>
</table>
<h3 id="外部服务">外部服务</h3>
<table>
  <thead>
      <tr>
          <th>服务</th>
          <th>用途</th>
          <th>状态</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>agentify.top</td>
          <td>AI 模型 API</td>
          <td>✅ 已配置</td>
      </tr>
      <tr>
          <td>Telegram Bot</td>
          <td>消息通道</td>
          <td>✅ 运行中</td>
      </tr>
  </tbody>
</table>
<hr>
<h2 id="网络拓扑">网络拓扑</h2>
<h3 id="端口映射">端口映射</h3>
<table>
  <thead>
      <tr>
          <th>端口</th>
          <th>协议</th>
          <th>服务</th>
          <th>绑定地址</th>
          <th>说明</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>22</td>
          <td>TCP</td>
          <td>SSH</td>
          <td>0.0.0.0</td>
          <td>EC2 管理入口</td>
      </tr>
      <tr>
          <td>80</td>
          <td>TCP</td>
          <td>HTTP</td>
          <td>0.0.0.0</td>
          <td>预留 (未使用)</td>
      </tr>
      <tr>
          <td>443</td>
          <td>TCP</td>
          <td>HTTPS</td>
          <td>0.0.0.0</td>
          <td>预留 (未使用)</td>
      </tr>
      <tr>
          <td>18789</td>
          <td>TCP</td>
          <td>OpenClaw Gateway</td>
          <td>127.0.0.1</td>
          <td>WebSocket + HTTP API</td>
      </tr>
  </tbody>
</table>
<h3 id="安全组规则">安全组规则</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-angle-right fa-fw" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h fa-fw" aria-hidden="true"></i></span>
        <span class="copy" title="复制到剪贴板"><i class="far fa-copy fa-fw" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># 入站规则</span>
</span></span><span class="line"><span class="cl">TCP <span class="m">22</span>   0.0.0.0/0   <span class="c1"># SSH 访问</span>
</span></span><span class="line"><span class="cl">TCP <span class="m">80</span>   0.0.0.0/0   <span class="c1"># HTTP (预留)</span>
</span></span><span class="line"><span class="cl">TCP <span class="m">443</span>  0.0.0.0/0   <span class="c1"># HTTPS (预留)</span></span></span></code></pre></div></div>
<p><strong>注意</strong>: Gateway 绑定在 loopback (127.0.0.1:18789)，不直接暴露公网。</p>]]></description>
</item>
<item>
    <title>RAG检索增强系统实战指南：从向量数据库到语义搜索</title>
    <link>https://walson.de5.net/posts/rag-system-guide/</link>
    <pubDate>Sat, 10 Jan 2026 10:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/rag-system-guide/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>在AI智能化服务平台中，我们开发了一个<strong>智能工具Agent平台</strong>，需要支持基于海量数据的语义搜索。传统的关键词搜索已经无法满足需求，我们需要的是<strong>理解用户意图的语义搜索</strong>。</p>]]></description>
</item>
<item>
    <title>域名迁移记录：从 walson.xyz 到 walson.de5.net</title>
    <link>https://walson.de5.net/posts/domain-migration-to-de5-net/</link>
    <pubDate>Thu, 01 Jan 2026 00:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/domain-migration-to-de5-net/</guid>
    <description><![CDATA[<h2 id="写在前面">写在前面</h2>
<p>今天把博客主域名从 <code>walson.xyz</code> 迁到了 <code>walson.de5.net</code>。</p>
<p>这次迁移的原因很现实：<code>walson.xyz</code> 快到期了，续费价格不划算（要几百块）。<br>
对个人博客来说，我更希望的是“稳定、低成本、可长期维护”，所以我决定切到一个可长期使用的二级域名。</p>]]></description>
</item>
<item>
    <title>从0到1构建企业级AI服务框架：多模型路由与故障转移实战</title>
    <link>https://walson.de5.net/posts/ai-service-framework/</link>
    <pubDate>Wed, 10 Dec 2025 10:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/ai-service-framework/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>随着AI大模型的快速发展，我们的团队开始尝试将AI能力融入各个业务系统。然而，我们很快遇到了一个棘手的问题：<strong>每个项目都要重复对接不同的AI提供商</strong>（OpenAI、通义千问、Gemini、豆包等），不仅开发效率低下，而且难以统一管理和维护。</p>]]></description>
</item>
<item>
    <title>Prompt工程优化实战：如何让AI准确率从65%提升到92%</title>
    <link>https://walson.de5.net/posts/prompt-engineering/</link>
    <pubDate>Thu, 13 Nov 2025 10:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/prompt-engineering/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>在AI智能化服务平台的健康数据分析模块中，我们需要让AI根据用户的健康数据（心率、睡眠、运动等）生成个性化的周报和月报。</p>
<p>最初，我们直接让AI生成报告，准确率只有<strong>65%</strong>。通过系统性的Prompt工程优化，我们将准确率提升到了<strong>92%</strong>。本文将分享我们的实战经验。</p>]]></description>
</item>
<item>
    <title>AWS Lambda冷启动优化实战：从3秒到800毫秒的Spring Boot优化之路</title>
    <link>https://walson.de5.net/posts/aws-lambda-coldstart-optimization/</link>
    <pubDate>Wed, 08 Oct 2025 10:00:00 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/aws-lambda-coldstart-optimization/</guid>
    <description><![CDATA[<h2 id="前言">前言</h2>
<p>在构建AI智能化服务平台时，我们选择了AWS Lambda作为核心计算服务，以实现无服务器架构和按需付费。然而，在实际生产环境中，我们遇到了一个严峻的挑战：<strong>Lambda冷启动延迟高达3秒以上</strong>，严重影响了用户体验。</p>]]></description>
</item>
<item>
    <title>好用的binlog2sql记录工具</title>
    <link>https://walson.de5.net/posts/new-blog-post/</link>
    <pubDate>Wed, 21 May 2025 16:10:14 &#43;0800</pubDate>
    <author>Walson</author>
    <guid>https://walson.de5.net/posts/new-blog-post/</guid>
    <description><![CDATA[<h2 id="今日收获">今日收获：</h2>
<ol>
<li>今天了解到一个好用的Github上的工具【binlog2sql.py】，作用是可以将mysql中binlog上的记录进行捕捉并回放，也可以直接生成逆向sql来修复数据，真的很不错！</li>
</ol>
<p>参考来源：恢复数据 binlog的作用之一-数据恢复 # MySQL # java # java面试 # binlog怎么恢复数据  <a href="https://v.douyin.com/mgelq4SA5hY/" target="_blank" rel="noopener noreffer ">https://v.douyin.com/mgelq4SA5hY/</a></p>]]></description>
</item>
</channel>
</rss>
