Premature optimization is the root of all evil in programming. We should forget about small efficiencies, say about 97% of the time. Yet we should not pass up our opportunities in that critical 3%. A good programmer will not be lulled into complacency by such reasoning, they will be wise to look carefully at the critical code; but only after that code is identified through profiling and measurement.

— Donald Knuth

✦

Blog

Nơi mình chia sẻ nhật ký và những câu chuyện nhỏ trong hành trình làm nghề.

❖

Zero-downtime deployment — Blue-Green và Canary thực chiến

14 tháng 8, 2026•Phong Hy

Blue-Green và Canary release giúp deploy không downtime, rollback nhanh. Kèm ví dụ nginx + docker-compose và kinh nghiệm thực tế.

engineeringdevops
Đọc tiếp→

Property-based testing — Để máy tự sinh input tìm bug giùm mình

13 tháng 8, 2026•Phong Hy

Property-based testing thay vì đoán input, máy tự sinh hàng trăm ngàn case để tìm bug — kèm ví dụ Go thực chiến.

engineeringtesting
Đọc tiếp→

Idempotency key — Chống trừ tiền 2 lần khi API bị retry

12 tháng 8, 2026•Phong Hy

Idempotency key giúp API xử lý an toàn khi client retry: trùng request vẫn trả kết quả cũ, không bao giờ trừ tiền 2 lần.

engineeringsystem-designbackend
Đọc tiếp→

Go pprof thực chiến — Tìm bottleneck và rò rỉ memory

11 tháng 8, 2026•Phong Hy

Profile CPU, heap và goroutine bằng pprof trong Go: cách bật endpoint, đọc flame graph và kinh nghiệm bắt bottleneck thực tế.

engineeringgobackend
Đọc tiếp→
←Trước
1···8910···50
91011···50
Sau→

Trang 9 / 50

Xem tất cả Tags→
✦
Home✦Blog✦Tags

Privacy Policy•Terms & Conditions© 2026 Phong Hy. Crafted with care.