The Archive
A complete collection of my engineering notes, case studies, and architectural patterns.
什么是幂等性
用示例与实现方案解释幂等性在分布式系统(HTTP 与 Kafka)中的意义与落地方法:Redis 去重、数据库事务、状态机与乐观锁等。
深入理解 ThreadLocal
从类比与源码出发,解析 ThreadLocal、ThreadLocalMap 与 Thread 的关系,及其导致的内存泄漏与防护措施。
并发更新导致字段丢失问题及解决方案
分析并发更新导致字段丢失(Lost Update)的问题,并给出字段级更新、乐观锁、悲观锁与事件合并层等解决方案。
The OutBox Pattern
Explanation and implementation patterns for the Outbox Pattern to reliably publish events in microservices (polling vs CDC approaches).
A Concise Guide to the AWS EKS Ecosystem
Fundamental AWS concepts, the EKS two-plane model, security/VPC best practices, and recommended environment separation for stable operations.
How to Connect to a Private EKS Cluster
Authenticate via corporate IdP, assume an AWS role, start an SSM port-forwarded tunnel to a bastion host, and configure kubectl for private EKS access.
Debugging Kafka's SslAuthenticationException
Debugging steps and root causes for Kafka's SslAuthenticationException, including keystore/truststore checks and certificate validation guidance.
Domain Architecture Design Guide
DDD and Hexagonal Architecture — guidance on domain modeling, ports & adapters, and organizing application layers for maintainable services.
Securely Connecting to Private EKS and RDS Clusters in AWS
Step-by-step guidance for securely accessing private EKS and RDS clusters via bastion hosts and SSM port forwarding.
Search API Optimization
Techniques for optimizing complex search APIs: joins, full-text search with GIN, pagination strategies, and native queries.
Order Status Design in Microservices: Tips & Tricks
Designing order workflows in microservices can get messy with many statuses; this post covers patterns for status handling, history, and handler decomposition.
Saga Pattern in Microservices — A Real-World Case Study
Insights and lessons learned from implementing the Saga Pattern in microservices, including orchestration, compensation, and resilience patterns.