<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>分类：微服务 - LT技术站</title><link>https://lautung.com/categories/microservice</link><atom:link href="https://lautung.com/categories/microservice/feed/categories/microservice.xml" rel="self" type="application/rss+xml"/><description>纸上得来终觉浅，绝知此事要躬行！</description><generator>Halo v2.27.2</generator><language>zh-cn</language><image><url>https://lautung.com/upload/ChatGPT%20Image%202026%E5%B9%B47%E6%9C%8810%E6%97%A5%2002_45_40(1).webp</url><title>分类：微服务 - LT技术站</title><link>https://lautung.com/categories/microservice</link></image><lastBuildDate>Fri, 13 Nov 2026 01:02:10 GMT</lastBuildDate><item><title><![CDATA[微服务组件选型：注册配置、容错、网关与 K8s 原生方案]]></title><link>https://lautung.com/archives/microservice-components</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=%E5%BE%AE%E6%9C%8D%E5%8A%A1%E7%BB%84%E4%BB%B6%E9%80%89%E5%9E%8B%EF%BC%9A%E6%B3%A8%E5%86%8C%E9%85%8D%E7%BD%AE%E3%80%81%E5%AE%B9%E9%94%99%E3%80%81%E7%BD%91%E5%85%B3%E4%B8%8E%20K8s%20%E5%8E%9F%E7%94%9F%E6%96%B9%E6%A1%88&amp;url=/archives/microservice-components" width="1" height="1" alt="" style="opacity:0;">微服务组件选型需结合技术栈与运维能力：Consul适合跨语言、跨机房场景，提供的服务发现、KV配置及DNS解耦能力完整；Nacos凭借与Spring Cloud生态的深度整合更适配现有体系，支持动态路由和灰度发布。配置中心选择需考虑团队现有架构：Apollo在多环境灰度审计场景更具优势，Nacos的配置管理则与注册发现天生耦合。客户端容错方案推荐resilience4j的新架构，其装饰器模式灵活且不强制线程池隔离，与Hystrix互补使用需注意状态迁移和降级逻辑的差异。网关应对入口流量治理，需明确路由与过滤的职责边界，避免将业务容错逻辑注入。容器化场景优先采用Spring Cloud Kubernetes，需注意RBAC权限设置和滚动发布的就绪探针控制点，同时与Service Mesh网关明确职责分工。选型矩阵建议按业务规模与技术栈成熟度动态评估，优先验证现有组件兼容性，避免盲目迁移带来的订单系统级风险。]]></description><guid isPermaLink="false">/archives/microservice-components</guid><dc:creator>LTT</dc:creator><category>微服务</category><pubDate>Wed, 16 Sep 2026 06:22:10 GMT</pubDate></item><item><title><![CDATA[Istio Ambient 实操：先 ztunnel，再 waypoint]]></title><link>https://lautung.com/archives/istio-ambient</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Istio%20Ambient%20%E5%AE%9E%E6%93%8D%EF%BC%9A%E5%85%88%20ztunnel%EF%BC%8C%E5%86%8D%20waypoint&amp;url=/archives/istio-ambient" width="1" height="1" alt="" style="opacity:0;">文章详解Istio Ambient模式从部署到调优的完整流程。基于Kubernetes 1.32+和Istio 1.31+，通过`istioctl install --set profile=ambient`启用该模式，核心优势是Node级ztunnel直连（无需sidecar容器），自动建立服务间mLTS加密通道，并同步TCP级监控指标。部署后命名空间需打`istio.io/dataplane-mode=ambient`标签，服务自动启用mLTS，通过日志验证ktunnel通信。高级功能需部署waypoint网关（对应Gateway API CRD），通过`istioctl waypoint apply`为服务创建独立HTTP路由，此时启用L7重试、流量镜像、细粒度鉴权等功能。配置金丝雀路由需确保Service打`istio.io/use-waypoint=true`且写入正确的HTTPRoute规则，注意未部署waypoint时路由策略无效。常见误区包括同命名空间混用sidecar与ambient模式，需保持sidecar注入标签与ambient模式互斥；安全策略需额外配置AuthorizationPolicy限制访问；重试策略需优先调整超时机制避免雪崩。适用场景包括新集群建设、多语言混合服务环境、集中管理mLTS等场景，已有sidecar网格建议逐步迁移，且需注意与Cilium等CNIs的兼容性问题。通过实例演示了从环境部署到路由策略配置的完整链路，并给出验证日志的方法和流量分析工具Kiali的查看方式。]]></description><guid isPermaLink="false">/archives/istio-ambient</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-istio-ambient.jpg&amp;size=m" type="image/jpeg" length="28799"/><category>微服务</category><pubDate>Sun, 13 Sep 2026 12:13:11 GMT</pubDate></item><item><title><![CDATA[Service Mesh]]></title><link>https://lautung.com/archives/8llwyvvO</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Service%20Mesh&amp;url=/archives/8llwyvvO" width="1" height="1" alt="" style="opacity:0;">Service Mesh将东西向服务间通信从业务SDK迁移至数据平面代理，不改变业务逻辑。核心功能独立于基础架构实现：控制平面管理路由、超时、熔断、重试预算和mTLS策略，数据平面执行代理转发。需注意三点：一、明确南北向职责边界，API网关处理入口鉴权，Mesh专注服务间治理；二、推进路径应先部署观测和流量控制（超时/重试），再实施全网格加密；三、代理产生运行成本，Sidecar按Pod计费，Ambient按节点，Waypoint按L7调用触发。适用条件为多语言微服务集群（超过10-15个服务）、需要统一mTLS/acls/金丝雀的多团队协作场景，单语种小团队更适合Linkerd等轻量方案。部署优先级建议：先实现基础服务网格功能（如 metrics、tracing），接着上线熔断/降级功能，最后部署全链路加密。]]></description><guid isPermaLink="false">/archives/8llwyvvO</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-01a09a92-18e0-75a5-97c5-4fb41f610c4e.jpg&amp;size=m" type="image/jpeg" length="23543"/><category>微服务</category><pubDate>Sun, 13 Sep 2026 12:13:11 GMT</pubDate></item><item><title><![CDATA[Apache Curator 完全指南- ZooKeeper Java客户端]]></title><link>https://lautung.com/archives/0U3gfGez</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Apache%20Curator%20%E5%AE%8C%E5%85%A8%E6%8C%87%E5%8D%97-%20ZooKeeper%20Java%E5%AE%A2%E6%88%B7%E7%AB%AF&amp;url=/archives/0U3gfGez" width="1" height="1" alt="" style="opacity:0;">Apache Curator是ZooKeeper的高阶Java客户端库，针对原生API的连接管理繁琐、Watcher一次性限制、节点递归创建困难等痛点设计。其核心特性包括：自动处理连接建立、故障重连及会话超时恢复；Fluent API设计提升代码可读性；Watchers自动续期机制解决监听单次触发问题；内置重试策略支持指数退避、限时重试等模式。通过_curator-recipes模块提供分布式锁（InterProcessMutex）、Leader选举、服务发现等标准化解决方案，典型应用场景涵盖配置管理、同步机制、微服务治理等领域。最佳实践强调命名空间隔离保证环境一致性、客户端生命周期规范关闭、合理配置超时与重试策略以避免性能问题，特别推荐ExponentialBackoffRetry应对网络波动。作为ZooKeeper的工程化封装层，Curator通过模块化设计（Client模块、Framework模块、Recipes模块等）显著降低分布式系统开发复杂度，兼具高可靠性与开发效率优势。]]></description><guid isPermaLink="false">/archives/0U3gfGez</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-01a02391-c7d7-71e9-9a1a-ede4a76f5ef8.jpg&amp;size=m" type="image/jpeg" length="29884"/><category>微服务</category><pubDate>Fri, 21 Aug 2026 15:06:15 GMT</pubDate></item><item><title><![CDATA[ZooKeeper 概述]]></title><link>https://lautung.com/archives/acUablzE</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=ZooKeeper%20%E6%A6%82%E8%BF%B0&amp;url=/archives/acUablzE" width="1" height="1" alt="" style="opacity:0;">ZooKeeper 是分布式协调服务，通过树形 ZNode 节点模型（持久/临时/顺序节点）和 ZAB 协议（原子广播+崩溃恢复）解决一致性、服务注册与发现、分布式锁等问题。核心特性包括顺序一致性、高可用性（簇需≥N/2+1节点存活）、实时数据推送（Watcher 机制）及内存存储的高性能。典型应用场景：基于临时节点的服务在线状态管理，持久节点实现配置动态更新，顺序节点生成分布式锁ID。对比 etcd 和 Consul，ZooKeeper 采用 ZooKeeperBy 设计哲学，生态覆盖 Hadoop、Kafka（部分版本）、Dubbo 等主流项目，但 Kafka 3.0+转向自研协议 KRaft。其优势在于成熟的稳定性和多场景适配能力，适合技术栈主要使用 Java 的生产环境。]]></description><guid isPermaLink="false">/archives/acUablzE</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-01a01e5e-d0c0-7006-bba3-d3723fd65d52.jpg&amp;size=m" type="image/jpeg" length="24785"/><category>微服务</category><pubDate>Fri, 21 Aug 2026 14:55:44 GMT</pubDate></item><item><title><![CDATA[Higress：从 API 网关到 AI Gateway]]></title><link>https://lautung.com/archives/higress%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8%E4%B8%8E%E6%89%AB%E7%9B%B2</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Higress%EF%BC%9A%E4%BB%8E%20API%20%E7%BD%91%E5%85%B3%E5%88%B0%20AI%20Gateway&amp;url=/archives/higress%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8%E4%B8%8E%E6%89%AB%E7%9B%B2" width="1" height="1" alt="" style="opacity:0;">Higress 是阿里开源的云原生 API 网关，基于 Istio + Envoy 架构，核心能力聚焦 AI 流量治理。它整合传统 API 网关的路由、鉴权、限流等功能，同时针对大模型场景提供多供应商模型接入、Token 统计流控、自动 Fallback、统一观测等专属能力。作为“AI 时代交通枢纽”，Higress 不替代 Agent 框架或 RAG 系统等垂直模块，而是承担统一入口的治理角色：业务侧通过单一 API 调用多个异构模型，控制面管理模型配置、策略及密钥，数据面基于 Envoy 进行高性能转发，支持流式 SSE 响应和 Wasm 插件扩展。适合需多模型协同、集中管控 API Key、实现统一成本治理及观测的企业级场景，而非 simple API 调用等低复杂度需求。重点价值在于通过网关抽象底层模型差异，支持企业编排多模型、多部门流量，形成AI基础设施底座。]]></description><guid isPermaLink="false">/archives/higress%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8%E4%B8%8E%E6%89%AB%E7%9B%B2</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019fff33-56f5-72ab-bf97-28c306b629f7.jpg&amp;size=m" type="image/jpeg" length="26515"/><category>微服务</category><pubDate>Fri, 14 Aug 2026 07:36:23 GMT</pubDate></item><item><title><![CDATA[Spring Cloud 2025微服务技术选型推荐]]></title><link>https://lautung.com/archives/UGddPy2r</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Spring%20Cloud%202025%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%8A%80%E6%9C%AF%E9%80%89%E5%9E%8B%E6%8E%A8%E8%8D%90&amp;url=/archives/UGddPy2r" width="1" height="1" alt="" style="opacity:0;">【IT老齐842】Spring Cloud 2025微服务技术选型推荐_哔哩哔哩_bilibili]]></description><guid isPermaLink="false">/archives/UGddPy2r</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019f1c78-37ac-74c0-93b1-6ba5cbe7c942.jpg&amp;size=m" type="image/jpeg" length="29774"/><category>微服务</category><pubDate>Wed, 1 Jul 2026 07:00:44 GMT</pubDate></item></channel></rss>