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
Feb 21, 2023 · Backend Development

Demystifying Go’s Built‑in RPC: From Demo to Deep Dive

This article walks through a hands‑on Go RPC demo, explains the underlying server and client mechanisms, explores registration, HTTP handling, request processing, object pooling, and the gob codec, and clarifies why Go includes RPC alongside HTTP.

Backend DevelopmentClientConcurrency
0 likes · 15 min read
Demystifying Go’s Built‑in RPC: From Demo to Deep Dive
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Jan 9, 2023 · Backend Development

How Go’s Built‑In HTTP Server Handles Connections and Requests

This article walks through building a minimal Go HTTP server, explains how ListenAndServe manages connections, details the internal accept‑serve loop, shows request handling, routing rules, and customization hooks, providing clear code examples and diagrams to demystify Go’s built‑in web server.

ConcurrencyNetworkinghttp server
0 likes · 10 min read
How Go’s Built‑In HTTP Server Handles Connections and Requests
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Nov 28, 2022 · Backend Development

Re‑engineering a Scalable Service Health‑Check System for Cloud‑Native Ops

This article details the redesign of a service health‑check component, covering its original limitations, industry alternatives, the chosen centralized active checking approach, architectural modules, concurrency model, scaling mechanisms, gray‑release strategy, and performance optimizations for reliable distributed systems.

backend architecturego concurrencyoperational reliability
0 likes · 17 min read
Re‑engineering a Scalable Service Health‑Check System for Cloud‑Native Ops
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Nov 14, 2022 · Backend Development

How Go’s HttpClient Implements Timeout with Context – A Deep Dive

This article compares Java’s HttpClient timeout implementation with Go’s built‑in HttpClient, explains Go’s Context‑based timeout mechanism, walks through the underlying source code, and shows why Java cannot easily replicate the same approach due to differences in concurrency primitives.

ConcurrencyHttpClientTimeout
0 likes · 15 min read
How Go’s HttpClient Implements Timeout with Context – A Deep Dive
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Oct 24, 2022 · Backend Development

Mastering Long-Connection Load Balancing: Strategies and Pitfalls

This article explains the differences between short and long connections, why long‑connection services need load balancing, and presents practical strategies for connection‑level balancing, handling server restarts, heterogeneous hardware, and scaling challenges.

ScalabilityServer Architecturebackend
0 likes · 8 min read
Mastering Long-Connection Load Balancing: Strategies and Pitfalls
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Sep 5, 2022 · Backend Development

How to Prevent Payment Order Loss (Drop Orders) in E‑Commerce Systems

This article explains why payment orders can disappear after a successful wallet transaction, outlines the complete payment flow, distinguishes internal and external drop‑order scenarios, and provides practical server‑side and client‑side strategies—including retry mechanisms, reliable async messaging, scheduled queries, and delayed‑message approaches—to reliably prevent such issues.

Message QueueReliabilitybackend
0 likes · 13 min read
How to Prevent Payment Order Loss (Drop Orders) in E‑Commerce Systems