All Posts

Full archive across Redis, distributed systems, database internals, concurrency, and microservices.

Challenge: Thundering Herd Problem

Reproduce and analyze cache stampede under high concurrency, then propose a solution with clear reasoning.

Sliding Window Rate Limiting (Log) từ cơ bản đến triển khai

Giải thích sliding window rate limiting từ góc nhìn thực tế: rate limiting là gì, cách hiểu '60 giây gần nhất', cách lưu timestamp theo từng user, và những vấn đề cần xử lý khi triển khai trong môi trường concurrent.

Bài 12: Testing Web Layer Với WebMvcTest

Hướng dẫn test Controller trong Spring Boot bằng WebMvcTest, MockMvc, MockBean và jsonPath để kiểm tra HTTP status, response JSON và hành vi web layer.

Bài 7: Spring Security: JWT custom & Keycloak

Tổng quan xác thực trong microservices với Spring Security, từ JWT tự tạo đến tích hợp Keycloak theo chuẩn OAuth2 Resource Server.