Architecting
scalable systems.
Specializing in Java, Cloud Native, and Distributed Architecture.
System Log
View Full History →End of recent logs...
Selected Artifacts
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