zqw's notes
Posts About
zqw's notes
Cancel
PostsAbout

Go Daemon Development: Graceful SIGTERM Handling and Config Hot-Reload

Paul published on 2023-03-10 included in Go

For a NAS product, I needed to develop a 24/7 system daemon for disk health monitoring and scheduled task management. This post covers the key technical aspects: signal handling, graceful shutdown, and config hot-reload.

Read More
 Daemon, Signal, Systemd

NAS Disk Health Monitoring: From smartctl to Custom Agent

Paul published on 2022-08-15 included in Linux

A NAS’s most important job is protecting user data. Disk failures often have warning signs, and SMART technology can detect problems early. This post documents how to build a disk health monitoring agent.

Read More
 Go, Monitoring, SMART

Production-Grade String Parsing: From atoi to State Machine

Paul published on 2022-04-14 included in Go

LeetCode’s atoi is a classic interview problem, but production-grade implementations are far more complex. This post starts from the interview version and gradually analyzes Go and Rust standard library implementations to understand “production-grade” code design.

Read More
 State Machine, Source Code Analysis, Strings

Go Generics in Practice: Pitfalls and Best Practices

Paul published on 2022-03-16 included in Go

Go 1.18 finally brought generics. In our NAS project, we refactored several common modules using generics. This post documents real-world benefits, pitfalls, and best practices we learned.

Read More
 Generics, Best Practices, Refactoring

HTTP/3 Benchmarks: QUIC Performance on Lossy Networks with Packet Analysis

Paul published on 2022-01-01 included in Networking

HTTP/3 replaces TCP+TLS with QUIC, claiming to solve “head-of-line blocking”. But how does it actually perform? This post uses simulated degraded networks to compare HTTP/2 and HTTP/3 with real data.

Read More
 HTTP/3, QUIC, Performance Testing

HTTPS Handshake Optimization: Cutting Latency from 200ms to 50ms

Paul published on 2021-12-26 included in Networking

Users were complaining about slow page loads. Chrome DevTools showed a TTFB (Time To First Byte) of 400ms, with HTTPS handshake alone taking 200ms. This post documents how I got that down to 50ms.

Read More
 HTTPS, TLS, Performance
  • 1
  • 2
  • 3
  • 4
2019 - 2026 xxxx | CC BY-NC 4.0