Xiao Lou's Tech Notes
Author

Xiao Lou's Tech Notes

Backend technology sharing, architecture design, performance optimization, source code reading, troubleshooting, and pitfall practices

79
Articles
0
Likes
19
Views
0
Comments
Recent Articles

Latest from Xiao Lou's Tech Notes

79 recent articles
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
May 17, 2020 · Databases

How to Build a High‑Availability, High‑Performance Distributed ID Generator

Distributed systems need globally unique, often monotonic IDs, and this article examines common ID generation strategies—Snowflake, database auto‑increment, segment allocation, multi‑master databases, and Raft‑based consensus—evaluating each for high availability and high performance, and highlighting trade‑offs and implementation details.

Distributed IDRaftSnowflake
0 likes · 8 min read
How to Build a High‑Availability, High‑Performance Distributed ID Generator
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
May 13, 2020 · Backend Development

How AtomicStampedReference Solves the ABA Problem in Java Concurrency

This article explains the ABA issue inherent in Java's CAS operations, demonstrates it with AtomicInteger examples, and shows how AtomicStampedReference (and AtomicMarkableReference) use version stamps to prevent erroneous multiple updates in multithreaded environments.

ABA problemCASatomicstampedreference
0 likes · 8 min read
How AtomicStampedReference Solves the ABA Problem in Java Concurrency
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
May 4, 2020 · Backend Development

Mastering JMH: Essential Java Microbenchmark Techniques for Accurate Performance Testing

JMH is a Java harness that enables precise, reproducible microbenchmarking through annotations, state management, threading, and profiling, and this guide walks through its core features—benchmark modes, state scopes, setup/teardown, fork control, blackholes, and advanced options—illustrated with sample code and results.

JMHJavaPerformance Testing
0 likes · 18 min read
Mastering JMH: Essential Java Microbenchmark Techniques for Accurate Performance Testing
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Apr 12, 2020 · Backend Development

Mastering Dubbo Tag Router: Isolate Parallel Tests with Dynamic Tag Routing

This article explains how Dubbo's tag router feature can isolate parallel test environments by assigning tags to providers and consumers, outlines configuration methods, compares it with version/group routing, discusses known attachment bugs, and presents a practical SPI‑filter solution for reliable tag propagation.

DubboJavaParallel Testing
0 likes · 8 min read
Mastering Dubbo Tag Router: Isolate Parallel Tests with Dynamic Tag Routing
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Apr 11, 2020 · Backend Development

Why Sentinel Misses Docker CPU Usage and How to Fix It

This article explains Sentinel's role in microservice rate limiting, details a Docker-specific bug where CPU utilization is incorrectly reported, clarifies the difference between CPU load and utilization, and outlines the code fix and its remaining limitations.

DockerJavaRate Limiting
0 likes · 6 min read
Why Sentinel Misses Docker CPU Usage and How to Fix It