Personal site
Reading, writing, and showing the work.
A personal space for notes, essays, and things I am making sense of.
Focus
Reading deeply, writing clearly, and learning in public.
Practice
I write, I read, and I build with code.
Site intent
Show the work
Now
Recent system log
Short entries from the week: what I am building, reading, debugging, or noticing.
End of recent logs...
Selected work
Essays, case studies, and architectural artifacts
A few pieces that best show how I think: operating tradeoffs, failure modes, and practical design decisions.
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