The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. In the choice between keeping code simple or making it clever, the professional programmer always chooses simplicity because they know that debugging is twice as hard as writing the code in the first place.

— Edsger W. Dijkstra

✦

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ề.

❖

Transaction Isolation — 4 mức cô lập trong PostgreSQL, chọn sao cho đúng?

5 tháng 9, 2026•Phong Hy

Hiểu 3 mức cô lập giao dịch trong PostgreSQL: Read Committed, Repeatable Read, Serializable — chọn đúng để khỏi ghi sai dữ liệu.

engineeringdatabase
Đọc tiếp→

Goroutine Leak trong Go — Leak chỗ nào, chữa bằng gì

4 tháng 9, 2026•Phong Hy

Goroutine rẻ nhưng không miễn phí. Bài này chỉ chỗ Goroutine leak thường gặp và cách bắt bằng runtime.NumGoroutine + pprof.

engineeringgo
Đọc tiếp→

Outbox Pattern — Ghi DB rồi publish event, không lo mất

3 tháng 9, 2026•Phong Hy

Outbox Pattern giải bài toán dual-write: ghi DB vừa publish event vừa an toàn, không mất mát. Có code Go và relay thực chiến.

engineeringarchitecturesystem-design
Đọc tiếp→

Cache-Aside: Vì sao bọc Redis ngoài DB vẫn có thể chậm

2 tháng 9, 2026•Phong Hy

Cache-aside tưởng đơn giản mà dính Cache Stampede, thiếu TTL jitter, ghi nhầm thứ tự. 3 cái bẫy làm chậm hệ thống dù đã bọc Redis.

engineeringoptimizedatabase
Đọc tiếp→
←Trước
1234···50
345···50
Sau→

Trang 3 / 50

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

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