Back Home

The Archive

A complete collection of my engineering notes, case studies, and architectural patterns.

distributed system

什么是幂等性

用示例与实现方案解释幂等性在分布式系统(HTTP 与 Kafka)中的意义与落地方法:Redis 去重、数据库事务、状态机与乐观锁等。

idempotency • Kafka • HTTP
java

深入理解 ThreadLocal

从类比与源码出发,解析 ThreadLocal、ThreadLocalMap 与 Thread 的关系,及其导致的内存泄漏与防护措施。

threadlocal • java • concurrency
database

并发更新导致字段丢失问题及解决方案

分析并发更新导致字段丢失(Lost Update)的问题,并给出字段级更新、乐观锁、悲观锁与事件合并层等解决方案。

concurrency • lost-update • jpa
microservices

The OutBox Pattern

Explanation and implementation patterns for the Outbox Pattern to reliably publish events in microservices (polling vs CDC approaches).

outbox • cdc • messaging
cloud

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.

aws • eks • kubernetes
cloud

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.

aws • eks • kubectl
kafka

Debugging Kafka's SslAuthenticationException

Debugging steps and root causes for Kafka's SslAuthenticationException, including keystore/truststore checks and certificate validation guidance.

kafka • ssl • security
architecture

Domain Architecture Design Guide

DDD and Hexagonal Architecture — guidance on domain modeling, ports & adapters, and organizing application layers for maintainable services.

ddd • hexagonal • architecture
cloud

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.

aws • eks • rds
database

Search API Optimization

Techniques for optimizing complex search APIs: joins, full-text search with GIN, pagination strategies, and native queries.

sql • postgres • performance
microservices

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.

orders • microservices • design
microservices

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.

saga • microservices • distributed-systems