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
Mar 13, 2025 · Fundamentals

Master Go’s New Cleanup Functions and Weak Pointers for Safer Memory Management

Go 1.24 introduces runtime.AddCleanup and weak.Pointer, advanced garbage‑collector tools that let developers attach cleanup callbacks without retaining objects and safely cache objects via weak references, offering more precise memory management, eliminating finalizer pitfalls, and enabling custom unique‑package implementations.

cleanup functionsruntime.AddCleanupweak references
0 likes · 9 min read
Master Go’s New Cleanup Functions and Weak Pointers for Safer Memory Management
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Feb 17, 2025 · Backend Development

Swiss Tables in Go 1.24: Open Addressing, SIMD, and Metadata Secrets

The article explains how Go 1.24’s new Swiss Tables hash‑map implementation replaces the traditional bucket‑based design with open addressing, SIMD‑accelerated probing, and metadata separation, detailing the underlying principles, performance advantages, handling of clustering and deletions, and a comparison with previous Go maps and Java’s HashMap.

GoSIMDhash map
0 likes · 16 min read
Swiss Tables in Go 1.24: Open Addressing, SIMD, and Metadata Secrets
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Aug 2, 2023 · Backend Development

Why Fastjson Breaks SpringBoot Agents and How to Resolve the ClassLoader Conflict

This article analyzes how adding Fastjson to a SpringBoot agent causes classloader conflicts that prevent GenericHttpMessageConverter from loading, explains the underlying parent‑delegation mechanism, and presents solutions such as using Maven Shade to rename packages or switching to a lightweight JSON library like Gson.

Dependency ConflictFastJSONGson
0 likes · 16 min read
Why Fastjson Breaks SpringBoot Agents and How to Resolve the ClassLoader Conflict
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Jun 26, 2023 · Backend Development

Why SkyWalking’s ThreadPool Plugin Failed and How I Fixed It

This article explains the root cause of the thread‑pool plugin enhancement failure in SkyWalking—duplicate AgentClassLoader instances—detailing the investigation steps, code changes, and two practical solutions to ensure reliable instrumentation of ThreadPoolExecutor.

InstrumentationJavaAgentThreadPool
0 likes · 18 min read
Why SkyWalking’s ThreadPool Plugin Failed and How I Fixed It
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
May 29, 2023 · Backend Development

Why Is My Go Health‑Check So Slow? Diagnosing TCP Latency and GC Overhead

This article investigates why a Go‑based service health‑check system experiences high latency, examines differences from Nginx checks, runs experiments on physical machines and Docker, and explores goroutine scheduling, GOMAXPROCS, and garbage‑collection tuning to reduce average response time from 40 ms to under 10 ms.

DockerHealth CheckPerformance optimization
0 likes · 10 min read
Why Is My Go Health‑Check So Slow? Diagnosing TCP Latency and GC Overhead