<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>hefylia</title>
  
  <subtitle>hefylia</subtitle>
  <link href="https://hefylia.com/atom.xml" rel="self"/>
  
  <link href="https://hefylia.com/"/>
  <updated>2026-03-20T14:13:30.062Z</updated>
  <id>https://hefylia.com/</id>
  
  <author>
    <name>hefylia</name>
    
  </author>
  
  <generator uri="https://hexo.io/">Hexo</generator>
  
  <entry>
    <title>在 Serverless 架构中集成 etcd 与 Memcached 构建幂等且高并发的代码格式化任务</title>
    <link href="https://hefylia.com/8480126974/"/>
    <id>https://hefylia.com/8480126974/</id>
    <published>2023-10-27T11:45:01.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;我们的 GitOps 流程开始出现一个棘手的问题。在一个庞大的 Monorepo 中，多个 CI/CD 流水线可能被几乎同时触发，它们都会尝试对同一组配置文件（例如共享的 &lt;code&gt;package.json&lt;/code&gt; 或</summary>
        
      
    
    
    
    <category term="分布式系统" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F/"/>
    
    
    <category term="AWS SNS" scheme="https://hefylia.com/tags/AWS-SNS/"/>
    
    <category term="etcd" scheme="https://hefylia.com/tags/etcd/"/>
    
    <category term="Prettier" scheme="https://hefylia.com/tags/Prettier/"/>
    
    <category term="Memcached" scheme="https://hefylia.com/tags/Memcached/"/>
    
    <category term="Vercel Functions" scheme="https://hefylia.com/tags/Vercel-Functions/"/>
    
  </entry>
  
  <entry>
    <title>利用 Flink 与 DynamoDB 构建实时图特征计算与服务架构</title>
    <link href="https://hefylia.com/0758088056/"/>
    <id>https://hefylia.com/0758088056/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;一个棘手的生产需求摆在了面前：我们需要为核心风控系统提供近乎实时的关联关系特征。例如，在用户发起一笔交易时，系统必须在50毫秒内判断该用户的设备、IP地址是否与已知的欺诈账户存在两度以内的关联。传统的做法是使用离线图计算（如Spark</summary>
        
      
    
    
    
    <category term="数据工程与存储" scheme="https://hefylia.com/categories/%E6%95%B0%E6%8D%AE%E5%B7%A5%E7%A8%8B%E4%B8%8E%E5%AD%98%E5%82%A8/"/>
    
    
    <category term="Apache Flink" scheme="https://hefylia.com/tags/Apache-Flink/"/>
    
    <category term="DynamoDB" scheme="https://hefylia.com/tags/DynamoDB/"/>
    
    <category term="NoSQL" scheme="https://hefylia.com/tags/NoSQL/"/>
    
    <category term="图计算" scheme="https://hefylia.com/tags/%E5%9B%BE%E8%AE%A1%E7%AE%97/"/>
    
    <category term="实时系统" scheme="https://hefylia.com/tags/%E5%AE%9E%E6%97%B6%E7%B3%BB%E7%BB%9F/"/>
    
  </entry>
  
  <entry>
    <title>构建 MLOps 平台中基于 Actix-web 与 MobX-SSR 的高性能模型洞察前端架构</title>
    <link href="https://hefylia.com/0759492916/"/>
    <id>https://hefylia.com/0759492916/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;为我们的 MLOps</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="MLOps" scheme="https://hefylia.com/tags/MLOps/"/>
    
    <category term="Actix-web" scheme="https://hefylia.com/tags/Actix-web/"/>
    
    <category term="SSR" scheme="https://hefylia.com/tags/SSR/"/>
    
    <category term="MobX" scheme="https://hefylia.com/tags/MobX/"/>
    
    <category term="Jib" scheme="https://hefylia.com/tags/Jib/"/>
    
  </entry>
  
  <entry>
    <title>结合eBPF与强化学习构建自adaptiveGoogle Cloud Pub/Sub消费端流控架构</title>
    <link href="https://hefylia.com/1347381861/"/>
    <id>https://hefylia.com/1347381861/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;h3 id=&quot;一、问题的根源：静态配置与动态负载的矛盾&quot;&gt;&lt;a href=&quot;#一、问题的根源：静态配置与动态负载的矛盾&quot; class=&quot;headerlink&quot;</summary>
        
      
    
    
    
    <category term="分布式系统" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F/"/>
    
    
    <category term="Google Cloud Pub/Sub" scheme="https://hefylia.com/tags/Google-Cloud-Pub-Sub/"/>
    
    <category term="eBPF" scheme="https://hefylia.com/tags/eBPF/"/>
    
    <category term="强化学习" scheme="https://hefylia.com/tags/%E5%BC%BA%E5%8C%96%E5%AD%A6%E4%B9%A0/"/>
    
  </entry>
  
  <entry>
    <title>整合 BentoML WebSockets 与 MobX 实现端到端的机器学习实时监控流</title>
    <link href="https://hefylia.com/1677814008/"/>
    <id>https://hefylia.com/1677814008/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;我们面临一个越来越普遍的问题：当系统指标开始出现异常时，传统的基于阈值的告警系统往往为时已晚。当CPU利用率持续95%的告警触发时，服务通常已经受到影响。我们需要的是一套能够从指标流的“形态”而非“数值”中学习，并提前预警潜在风险的系统。这自然地指向了机器学习，特别是实时时</summary>
        
      
    
    
    
    <category term="架构与设计" scheme="https://hefylia.com/categories/%E6%9E%B6%E6%9E%84%E4%B8%8E%E8%AE%BE%E8%AE%A1/"/>
    
    
    <category term="MobX" scheme="https://hefylia.com/tags/MobX/"/>
    
    <category term="BentoML" scheme="https://hefylia.com/tags/BentoML/"/>
    
    <category term="WebSockets" scheme="https://hefylia.com/tags/WebSockets/"/>
    
    <category term="Docker Swarm" scheme="https://hefylia.com/tags/Docker-Swarm/"/>
    
    <category term="MySQL" scheme="https://hefylia.com/tags/MySQL/"/>
    
  </entry>
  
  <entry>
    <title>Node.js与Python Celery异构任务队列的架构权衡与实现</title>
    <link href="https://hefylia.com/2930942663/"/>
    <id>https://hefylia.com/2930942663/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在维护一个核心业务由Node.js构建的系统中，我们遇到了一个典型的瓶颈：部分计算密集型或长时I/O任务，如财务报表生成、数据批量清洗、机器学习模型推理等，严重阻塞了Node.js的事件循环。将这些任务迁移出去是必然选择。团队的技术栈在Python的数据科学和任务处理领域有</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Docker" scheme="https://hefylia.com/tags/Docker/"/>
    
    <category term="Node.js" scheme="https://hefylia.com/tags/Node-js/"/>
    
    <category term="Celery" scheme="https://hefylia.com/tags/Celery/"/>
    
    <category term="FastAPI" scheme="https://hefylia.com/tags/FastAPI/"/>
    
    <category term="RabbitMQ" scheme="https://hefylia.com/tags/RabbitMQ/"/>
    
  </entry>
  
  <entry>
    <title>基于 Haskell 与 WebSocket 实现一个带状态机前端的二阶段提交协调器</title>
    <link href="https://hefylia.com/2818286701/"/>
    <id>https://hefylia.com/2818286701/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;需要在一个原子操作中同时更新 S3 上的文件和 PostgreSQL</summary>
        
      
    
    
    
    <category term="分布式系统" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F/"/>
    
    
    <category term="WebSockets" scheme="https://hefylia.com/tags/WebSockets/"/>
    
    <category term="Two-Phase Commit (2PC)" scheme="https://hefylia.com/tags/Two-Phase-Commit-2PC/"/>
    
    <category term="XState" scheme="https://hefylia.com/tags/XState/"/>
    
    <category term="RESTful API" scheme="https://hefylia.com/tags/RESTful-API/"/>
    
    <category term="Haskell" scheme="https://hefylia.com/tags/Haskell/"/>
    
  </entry>
  
  <entry>
    <title>构建跨云厂商的 RocketMQ 集群以实现灾备与业务连续性</title>
    <link href="https://hefylia.com/3405200165/"/>
    <id>https://hefylia.com/3405200165/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;业务的连续性要求我们的核心消息链路具备地域级容灾能力。当单一云服务商的某个区域（Region）出现整体故障时，服务必须能够在另一个区域甚至另一个云服务商的基础设施上快速恢复。摆在面前的技术决策是：如何构建一个跨越不同云厂商（例如AWS和阿里云）的、统一的、高可用的消息中间件</summary>
        
      
    
    
    
    <category term="分布式架构" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="分布式与中间件" scheme="https://hefylia.com/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%B8%8E%E4%B8%AD%E9%97%B4%E4%BB%B6/"/>
    
    <category term="云服务商" scheme="https://hefylia.com/tags/%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%95%86/"/>
    
    <category term="RocketMQ" scheme="https://hefylia.com/tags/RocketMQ/"/>
    
  </entry>
  
  <entry>
    <title>在 Kotlin 中利用 Polyrepo 物理隔离实现 CQRS 的架构权衡与实践</title>
    <link href="https://hefylia.com/3437955607/"/>
    <id>https://hefylia.com/3437955607/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在一个逻辑上实现了CQRS的单体（Monolith）或单一仓库（Monorepo）项目中，命令模型（Command Model）的内部实现细节常常会无意间渗透到查询模型（Query</summary>
        
      
    
    
    
    <category term="架构与设计" scheme="https://hefylia.com/categories/%E6%9E%B6%E6%9E%84%E4%B8%8E%E8%AE%BE%E8%AE%A1/"/>
    
    
    <category term="CQRS" scheme="https://hefylia.com/tags/CQRS/"/>
    
    <category term="Polyrepo" scheme="https://hefylia.com/tags/Polyrepo/"/>
    
    <category term="Kotlin" scheme="https://hefylia.com/tags/Kotlin/"/>
    
    <category term="DDD" scheme="https://hefylia.com/tags/DDD/"/>
    
    <category term="微服务" scheme="https://hefylia.com/tags/%E5%BE%AE%E6%9C%8D%E5%8A%A1/"/>
    
  </entry>
  
  <entry>
    <title>使用 OpenTelemetry 与 TypeScript 构建 Storybook 组件生命周期追踪插件</title>
    <link href="https://hefylia.com/4175298897/"/>
    <id>https://hefylia.com/4175298897/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;一个复杂的React组件在Storybook中表现迟缓。我们团队都注意到了这个问题，尤其是在调整Controls面板中的props时，UI的响应明显卡顿。Storybook的性能插件（addon-performance）能显示渲染时间，但它提供的信息太表面了。它告诉我们“什</summary>
        
      
    
    
    
    <category term="前端工程化" scheme="https://hefylia.com/categories/%E5%89%8D%E7%AB%AF%E5%B7%A5%E7%A8%8B%E5%8C%96/"/>
    
    
    <category term="TypeScript" scheme="https://hefylia.com/tags/TypeScript/"/>
    
    <category term="OpenTelemetry" scheme="https://hefylia.com/tags/OpenTelemetry/"/>
    
    <category term="Storybook" scheme="https://hefylia.com/tags/Storybook/"/>
    
  </entry>
  
  <entry>
    <title>基于in-toto证明的Pandas工作负载在MLOps GitOps流程中的安全部署实践</title>
    <link href="https://hefylia.com/4038285489/"/>
    <id>https://hefylia.com/4038285489/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;我们的 MLOps 平台最近遇到了一个棘手的安全问题。数据科学团队提交了一个用于特征工程的 Pandas 脚本，附带一个 &lt;code&gt;requirements.txt&lt;/code&gt; 文件。CI 管道按部就班地构建容器镜像，Argo CD</summary>
        
      
    
    
    
    <category term="MLOps" scheme="https://hefylia.com/categories/MLOps/"/>
    
    
    <category term="MLOps" scheme="https://hefylia.com/tags/MLOps/"/>
    
    <category term="Pandas" scheme="https://hefylia.com/tags/Pandas/"/>
    
    <category term="Security" scheme="https://hefylia.com/tags/Security/"/>
    
    <category term="Argo CD" scheme="https://hefylia.com/tags/Argo-CD/"/>
    
    <category term="Kubernetes" scheme="https://hefylia.com/tags/Kubernetes/"/>
    
    <category term="GitOps" scheme="https://hefylia.com/tags/GitOps/"/>
    
    <category term="Tekton" scheme="https://hefylia.com/tags/Tekton/"/>
    
    <category term="Kyverno" scheme="https://hefylia.com/tags/Kyverno/"/>
    
    <category term="in-toto" scheme="https://hefylia.com/tags/in-toto/"/>
    
  </entry>
  
  <entry>
    <title>集成 Jib、SAML 与 Firestore 构建动态数据隔离的多租户 Spring Boot 架构</title>
    <link href="https://hefylia.com/5367084874/"/>
    <id>https://hefylia.com/5367084874/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;我们面临的初始需求听起来很直接：为公司内部不同业务线（BU）构建一个统一的数据管理平台。但魔鬼藏在细节里：每个BU都使用自己独立的身份提供商（IdP），遵循SAML 2.0协议；平台必须实现零接触式租户</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Jib" scheme="https://hefylia.com/tags/Jib/"/>
    
    <category term="SAML" scheme="https://hefylia.com/tags/SAML/"/>
    
    <category term="Firestore" scheme="https://hefylia.com/tags/Firestore/"/>
    
    <category term="Spring Boot" scheme="https://hefylia.com/tags/Spring-Boot/"/>
    
    <category term="多租户" scheme="https://hefylia.com/tags/%E5%A4%9A%E7%A7%9F%E6%88%B7/"/>
    
  </entry>
  
  <entry>
    <title>在 OCI Nomad 集群中为 Flask 应用实现基于 IAM 动态组的无凭证化服务认证</title>
    <link href="https://hefylia.com/5805122992/"/>
    <id>https://hefylia.com/5805122992/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;一个看似简单的需求摆在面前：部署在 OCI (Oracle Cloud Infrastructure) Nomad 集群上的一个 Flask 应用，需要读取特定 Object Storage Bucket 中的文件。最直接的做法，也是最不安全的做法，是将用户的 API</summary>
        
      
    
    
    
    <category term="DevOps" scheme="https://hefylia.com/categories/DevOps/"/>
    
    
    <category term="OCI" scheme="https://hefylia.com/tags/OCI/"/>
    
    <category term="Nomad" scheme="https://hefylia.com/tags/Nomad/"/>
    
    <category term="Flask" scheme="https://hefylia.com/tags/Flask/"/>
    
    <category term="IAM" scheme="https://hefylia.com/tags/IAM/"/>
    
    <category term="Terraform" scheme="https://hefylia.com/tags/Terraform/"/>
    
  </entry>
  
  <entry>
    <title>构建基于Knative的事件驱动型Snowflake数据摄取核心库与自动化工具链</title>
    <link href="https://hefylia.com/5897816196/"/>
    <id>https://hefylia.com/5897816196/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;团队内部的数据源越来越多，从 Kafka 的业务事件流，到对象存储上游系统定时落地的文件，都需要统一汇入 Snowflake</summary>
        
      
    
    
    
    <category term="云原生" scheme="https://hefylia.com/categories/%E4%BA%91%E5%8E%9F%E7%94%9F/"/>
    
    
    <category term="核心库" scheme="https://hefylia.com/tags/%E6%A0%B8%E5%BF%83%E5%BA%93/"/>
    
    <category term="Snowflake" scheme="https://hefylia.com/tags/Snowflake/"/>
    
    <category term="Knative" scheme="https://hefylia.com/tags/Knative/"/>
    
    <category term="构建与工具" scheme="https://hefylia.com/tags/%E6%9E%84%E5%BB%BA%E4%B8%8E%E5%B7%A5%E5%85%B7/"/>
    
    <category term="Golang" scheme="https://hefylia.com/tags/Golang/"/>
    
    <category term="Serverless" scheme="https://hefylia.com/tags/Serverless/"/>
    
  </entry>
  
  <entry>
    <title>构建基于DVC服务网格与Angular的机器学习特征全链路可观测性与版本化实践</title>
    <link href="https://hefylia.com/5989745342/"/>
    <id>https://hefylia.com/5989745342/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;团队的机器学习模型迭代开始失控，根源不在算法，而在特征。一个特征工程脚本的微小改动，一周后可能导致线上模型性能的神秘衰减，而彼时，没人能准确复盘出是哪个版本的代码、处理了哪一批数据、最终生成了线上正在使用的那版特征。特征的生成过程变成了一个难以追溯、无法复现的黑盒，这在生产</summary>
        
      
    
    
    
    <category term="MLOps" scheme="https://hefylia.com/categories/MLOps/"/>
    
    
    <category term="MLOps" scheme="https://hefylia.com/tags/MLOps/"/>
    
    <category term="DVC" scheme="https://hefylia.com/tags/DVC/"/>
    
    <category term="Service Mesh" scheme="https://hefylia.com/tags/Service-Mesh/"/>
    
    <category term="Angular" scheme="https://hefylia.com/tags/Angular/"/>
    
    <category term="Vitest" scheme="https://hefylia.com/tags/Vitest/"/>
    
    <category term="Istio" scheme="https://hefylia.com/tags/Istio/"/>
    
  </entry>
  
  <entry>
    <title>一个集成了动态样式、OpenCV处理与WebSocket通信的视觉组件开发实录</title>
    <link href="https://hefylia.com/6286681379/"/>
    <id>https://hefylia.com/6286681379/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;团队接手了一个新需求，要求在多个前端项目中嵌入一个功能：实时捕获用户摄像头画面，发送到后端进行视觉分析，然后将分析结果（如人脸框、关键点）实时绘制在画面上。直接的想法是为每个项目单独实现，但这显然不是一个可维护的方案。我们需要的是一个独立的、可配置的、可复用的React组件</summary>
        
      
    
    
    
    <category term="前端工程化" scheme="https://hefylia.com/categories/%E5%89%8D%E7%AB%AF%E5%B7%A5%E7%A8%8B%E5%8C%96/"/>
    
    
    <category term="WebSockets" scheme="https://hefylia.com/tags/WebSockets/"/>
    
    <category term="Storybook" scheme="https://hefylia.com/tags/Storybook/"/>
    
    <category term="样式方案" scheme="https://hefylia.com/tags/%E6%A0%B7%E5%BC%8F%E6%96%B9%E6%A1%88/"/>
    
    <category term="OpenCV" scheme="https://hefylia.com/tags/OpenCV/"/>
    
  </entry>
  
  <entry>
    <title>构建一个集成Jotai前端、Ruby后端与云端SciPy计算的异步任务平台</title>
    <link href="https://hefylia.com/6525393483/"/>
    <id>https://hefylia.com/6525393483/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;我们团队的数据分析师最近遇到了一个瓶颈。他们依赖一组复杂的Python脚本进行蒙特卡洛模拟，这些脚本大量使用SciPy和NumPy。问题在于，这些计算任务通常需要运行5到20分钟，完全锁死他们的本地机器，而且结果分享极为低效——通常是截图或者传来传去的CSV文件。为了解决这</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="云服务商" scheme="https://hefylia.com/tags/%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%95%86/"/>
    
    <category term="Jotai" scheme="https://hefylia.com/tags/Jotai/"/>
    
    <category term="SciPy" scheme="https://hefylia.com/tags/SciPy/"/>
    
    <category term="Ruby" scheme="https://hefylia.com/tags/Ruby/"/>
    
  </entry>
  
  <entry>
    <title>构建基于Nomad与ClickHouse的高吞吐可观测TensorFlow模型服务</title>
    <link href="https://hefylia.com/6909484677/"/>
    <id>https://hefylia.com/6909484677/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;最初的尝试是一场灾难。一个简单的 Flask 应用，通过 &lt;code&gt;tensorflow.keras.models.load_model&lt;/code&gt; 加载模型，然后用 Gunicorn 部署了几个</summary>
        
      
    
    
    
    <category term="MLOps" scheme="https://hefylia.com/categories/MLOps/"/>
    
    
    <category term="Nomad" scheme="https://hefylia.com/tags/Nomad/"/>
    
    <category term="TensorFlow" scheme="https://hefylia.com/tags/TensorFlow/"/>
    
    <category term="Django" scheme="https://hefylia.com/tags/Django/"/>
    
    <category term="模型部署" scheme="https://hefylia.com/tags/%E6%A8%A1%E5%9E%8B%E9%83%A8%E7%BD%B2/"/>
    
    <category term="ClickHouse" scheme="https://hefylia.com/tags/ClickHouse/"/>
    
  </entry>
  
  <entry>
    <title>使用 JavaScript 构建管理分片数据库的声明式 Saga 事务 Kubernetes Operator</title>
    <link href="https://hefylia.com/7490667918/"/>
    <id>https://hefylia.com/7490667918/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在一个按用户ID分片的微服务体系中，一个看似简单的用户注册流程暴露了架构的裂缝。该流程要求原子性地完成两个操作：在&lt;code&gt;users&lt;/code&gt;分片库中创建核心用户记录，并在&lt;code&gt;accounts&lt;/code&gt;分片库中初始化用户的资金账户。这两个库物理隔离，传统</summary>
        
      
    
    
    
    <category term="分布式系统" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F/"/>
    
    
    <category term="数据库分片" scheme="https://hefylia.com/tags/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%88%86%E7%89%87/"/>
    
    <category term="容器编排" scheme="https://hefylia.com/tags/%E5%AE%B9%E5%99%A8%E7%BC%96%E6%8E%92/"/>
    
    <category term="Kubernetes" scheme="https://hefylia.com/tags/Kubernetes/"/>
    
    <category term="分布式事务" scheme="https://hefylia.com/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/"/>
    
    <category term="JavaScript" scheme="https://hefylia.com/tags/JavaScript/"/>
    
  </entry>
  
  <entry>
    <title>构建 Qwik 与 Pinecone 驱动的低延迟语义搜索的 API 架构权衡</title>
    <link href="https://hefylia.com/7746059981/"/>
    <id>https://hefylia.com/7746059981/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;一个根本性的矛盾摆在面前：Qwik 框架的设计哲学是消除 hydration，追求极致的即时交互，目标是将可交互时间（TTI）压缩到毫秒级。而另一端，Pinecone 驱动的语义搜索，即使经过深度优化，其 P99</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Node.js" scheme="https://hefylia.com/tags/Node-js/"/>
    
    <category term="Pinecone" scheme="https://hefylia.com/tags/Pinecone/"/>
    
    <category term="Qwik" scheme="https://hefylia.com/tags/Qwik/"/>
    
    <category term="API" scheme="https://hefylia.com/tags/API/"/>
    
    <category term="架构设计" scheme="https://hefylia.com/tags/%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/"/>
    
    <category term="向量数据库" scheme="https://hefylia.com/tags/%E5%90%91%E9%87%8F%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
    
  </entry>
  
  <entry>
    <title>构建基于 NATS JetStream 和 PostCSS 的动态样式分发服务</title>
    <link href="https://hefylia.com/7059059920/"/>
    <id>https://hefylia.com/7059059920/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在一个大型多租户SaaS平台中，为不同租户提供定制化的品牌主题是一项核心需求。但随着租户数量的增长，传统的静态编译方案暴露了其固有的瓶ăpadă：每次主题变更都需要触发CI/CD流水线，进行完整的应用构建和部署。这个过程不仅耗时数分钟乃至数小时，还极大地增加了运维负担和发布</summary>
        
      
    
    
    
    <category term="架构设计" scheme="https://hefylia.com/categories/%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/"/>
    
    
    <category term="微服务" scheme="https://hefylia.com/tags/%E5%BE%AE%E6%9C%8D%E5%8A%A1/"/>
    
    <category term="样式方案" scheme="https://hefylia.com/tags/%E6%A0%B7%E5%BC%8F%E6%96%B9%E6%A1%88/"/>
    
    <category term="PostCSS" scheme="https://hefylia.com/tags/PostCSS/"/>
    
    <category term="NATS" scheme="https://hefylia.com/tags/NATS/"/>
    
    <category term="Go" scheme="https://hefylia.com/tags/Go/"/>
    
  </entry>
  
  <entry>
    <title>构建由 mTLS 加固的 gRPC 微服务并通过 GraphQL 网关为 Astro 前端提供搜索能力</title>
    <link href="https://hefylia.com/8478022801/"/>
    <id>https://hefylia.com/8478022801/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;我们的内部开发者平台（IDP）在演进过程中遇到了一个典型的架构瓶颈。平台的前端展示层采用 Astro 构建，它需要整合来自不同后台服务的数据，例如文档库、服务元数据、CI/CD 流水线状态等。最初，Astro 页面通过多个独立的 RESTful API</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="gRPC" scheme="https://hefylia.com/tags/gRPC/"/>
    
    <category term="Meilisearch" scheme="https://hefylia.com/tags/Meilisearch/"/>
    
    <category term="GraphQL" scheme="https://hefylia.com/tags/GraphQL/"/>
    
    <category term="mTLS" scheme="https://hefylia.com/tags/mTLS/"/>
    
    <category term="Astro" scheme="https://hefylia.com/tags/Astro/"/>
    
  </entry>
  
  <entry>
    <title>利用Vault PKI为Spring Boot服务与Kotlin Multiplatform客户端实现动态mTLS证书管理</title>
    <link href="https://hefylia.com/9529196399/"/>
    <id>https://hefylia.com/9529196399/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在分布式系统中，服务间的双向认证（mTLS）是零信任网络模型的基础。然而，传统的mTLS实践往往依赖于手动生成、分发和轮换长周期证书，这不仅是运维的噩梦，更是潜在的安全隐患。一旦私钥泄露，攻击者将获得长期的访问权限。我们面临的挑战是：如何构建一个全自动、短生命周期的mTLS</summary>
        
      
    
    
    
    <category term="基础设施安全" scheme="https://hefylia.com/categories/%E5%9F%BA%E7%A1%80%E8%AE%BE%E6%96%BD%E5%AE%89%E5%85%A8/"/>
    
    
    <category term="Spring Boot" scheme="https://hefylia.com/tags/Spring-Boot/"/>
    
    <category term="mTLS" scheme="https://hefylia.com/tags/mTLS/"/>
    
    <category term="Git" scheme="https://hefylia.com/tags/Git/"/>
    
    <category term="Kotlin Multiplatform" scheme="https://hefylia.com/tags/Kotlin-Multiplatform/"/>
    
    <category term="Vault" scheme="https://hefylia.com/tags/Vault/"/>
    
  </entry>
  
  <entry>
    <title>构建基于 Spring 与 Nuxt 的无会话 WebAuthn 认证架构</title>
    <link href="https://hefylia.com/9871829685/"/>
    <id>https://hefylia.com/9871829685/</id>
    <published>2023-10-27T10:30:00.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在构建需要横向扩展的现代 Web 应用时，维持后端的无状态（Stateless）是一项核心原则。然而，像 WebAuthn 这种涉及多步客户端-服务器交互的复杂认证协议，似乎天然地倾向于使用服务端会话（Session）来暂存握手过程中的状态，例如那个至关重要的、一次性的</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Spring Framework" scheme="https://hefylia.com/tags/Spring-Framework/"/>
    
    <category term="Nuxt.js" scheme="https://hefylia.com/tags/Nuxt-js/"/>
    
    <category term="WebAuthn" scheme="https://hefylia.com/tags/WebAuthn/"/>
    
  </entry>
  
  <entry>
    <title>构建基于 Delta Lake 的事件溯源 IoT 状态机与 Serverless 投影</title>
    <link href="https://hefylia.com/6508852442/"/>
    <id>https://hefylia.com/6508852442/</id>
    <published>2023-10-27T10:15:32.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;管理数百万计的物联网设备状态是一场持久战。我们最初的方案是传统的 CRUD 模型，直接在 PostgreSQL</summary>
        
      
    
    
    
    <category term="分布式架构" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Fastify" scheme="https://hefylia.com/tags/Fastify/"/>
    
    <category term="Event Sourcing" scheme="https://hefylia.com/tags/Event-Sourcing/"/>
    
    <category term="Delta Lake" scheme="https://hefylia.com/tags/Delta-Lake/"/>
    
    <category term="OpenFaaS" scheme="https://hefylia.com/tags/OpenFaaS/"/>
    
  </entry>
  
  <entry>
    <title>使用 Ray Actors 构建一个分布式、有状态的断路器服务</title>
    <link href="https://hefylia.com/5748699320/"/>
    <id>https://hefylia.com/5748699320/</id>
    <published>2023-10-27T10:15:30.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;一个断路器的核心本质是一个状态机。它封装了对下游服务的调用，并根据失败率在三个状态之间转换：&lt;code&gt;CLOSED&lt;/code&gt;（允许所有调用通过）、&lt;code&gt;OPEN&lt;/code&gt;（立即拒绝所有调用）和</summary>
        
      
    
    
    
    <category term="分布式系统" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F/"/>
    
    
    <category term="框架 (Python)" scheme="https://hefylia.com/tags/%E6%A1%86%E6%9E%B6-Python/"/>
    
    <category term="Ray" scheme="https://hefylia.com/tags/Ray/"/>
    
    <category term="核心库" scheme="https://hefylia.com/tags/%E6%A0%B8%E5%BF%83%E5%BA%93/"/>
    
    <category term="断路器" scheme="https://hefylia.com/tags/%E6%96%AD%E8%B7%AF%E5%99%A8/"/>
    
    <category term="高可用" scheme="https://hefylia.com/tags/%E9%AB%98%E5%8F%AF%E7%94%A8/"/>
    
  </entry>
  
  <entry>
    <title>基于 Fastify 与 Relay 构建健壮的 JWT 无感知刷新机制</title>
    <link href="https://hefylia.com/9821853484/"/>
    <id>https://hefylia.com/9821853484/</id>
    <published>2023-10-27T10:15:28.000Z</published>
    <updated>2026-03-20T14:13:30.062Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;在构建依赖短时效 JWT (JSON Web Token) 的单页应用时，一个无法回避的工程问题是如何处理 Access Token 的过期。当用户正在与应用交互，多个并发数据请求被发出时，Token</summary>
        
      
    
    
    
    <category term="后端架构" scheme="https://hefylia.com/categories/%E5%90%8E%E7%AB%AF%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Fastify" scheme="https://hefylia.com/tags/Fastify/"/>
    
    <category term="GraphQL" scheme="https://hefylia.com/tags/GraphQL/"/>
    
    <category term="Relay" scheme="https://hefylia.com/tags/Relay/"/>
    
    <category term="JWT" scheme="https://hefylia.com/tags/JWT/"/>
    
    <category term="前端工程化" scheme="https://hefylia.com/tags/%E5%89%8D%E7%AB%AF%E5%B7%A5%E7%A8%8B%E5%8C%96/"/>
    
  </entry>
  
  <entry>
    <title>构建基于Zookeeper与容器编排的动态数据库分片控制平面</title>
    <link href="https://hefylia.com/1375749334/"/>
    <id>https://hefylia.com/1375749334/</id>
    <published>2023-10-27T10:15:27.000Z</published>
    <updated>2026-03-20T14:13:30.058Z</updated>
    
    
      
      
        
        
    <summary type="html">&lt;p&gt;当单体MySQL的写入吞吐量达到每秒几万次时，垂直扩展的成本和物理极限开始显现。我们的监控面板上，IOPS和CPU使用率曲线像心电图一样剧烈波动，每一次业务高峰都像是一次对SRE团队的压力测试。手动分片？我们尝试过。那是一段充满&lt;code&gt;mysqldump&lt;/code&gt;、</summary>
        
      
    
    
    
    <category term="分布式架构" scheme="https://hefylia.com/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E6%9E%B6%E6%9E%84/"/>
    
    
    <category term="Zookeeper" scheme="https://hefylia.com/tags/Zookeeper/"/>
    
    <category term="数据库分片" scheme="https://hefylia.com/tags/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%88%86%E7%89%87/"/>
    
    <category term="容器编排" scheme="https://hefylia.com/tags/%E5%AE%B9%E5%99%A8%E7%BC%96%E6%8E%92/"/>
    
    <category term="Redis" scheme="https://hefylia.com/tags/Redis/"/>
    
    <category term="AWS SNS" scheme="https://hefylia.com/tags/AWS-SNS/"/>
    
  </entry>
  
</feed>
