Code should be written to minimize the time it would take for someone else to understand it. This principle should guide all coding decisions, from naming variables to structuring functions to organizing modules. Even if you are the only person who will ever read your code, that person will be you six months from now—effectively a different person who has forgotten all the context you currently have.

— Dustin Boswell

✦

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

❖

Event-driven Architecture — Bỏ gọi API, nói chuyện qua sự kiện

18 tháng 8, 2026•Phong Hy

Event-driven architecture giúp hệ thống decouple và scale mượt mà. Học event, event bus, outbox pattern cùng kinh nghiệm thực chiến.

engineeringarchitecturebackend
Đọc tiếp→

Fan-in Fan-out trong Go — Chia việc cho goroutine, gom kết quả lại

17 tháng 8, 2026•Phong Hy

Fan-in fan-out giúp xử lý hàng ngàn tác vụ song song bằng goroutine rồi gom kết quả — kèm code mẫu Go và kinh nghiệm thực chiến.

engineeringgo
Đọc tiếp→

EXPLAIN ANALYZE — Vũ khí săn query chậm trong database

16 tháng 8, 2026•Phong Hy

Tối ưu SQL query bằng EXPLAIN ANALYZE: đọc execution plan, tìm sequential scan, thêm index đúng chỗ, biến query 3 giây thành 30ms.

engineeringoptimizedatabase
Đọc tiếp→

Connection pooling — Tại sao app chậm dù database khỏe re?

15 tháng 8, 2026•Phong Hy

Connection pooling tái sử dụng kết nối database, giảm latency và tránh lỗi 'too many connections'. Kinh nghiệm config pool đúng cách trong Go.

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

Trang 8 / 50

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

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