Đang mở hậu trường...
Chọn đáp án để xem tỉ lệ cộng đồng và giải thích. Câu hỏi được chọn tự động — mọi người cùng làm 1 câu mỗi ngày.
Your team runs a product detail API backed by Redis with a 5-minute TTL per product key. Every evening when a flash sale starts, one very popular product's cache entry expires and within the same second thousands of concurrent requests all miss the cache and hit PostgreSQL, causing timeouts. The data may be a few seconds stale without harm. Which change best addresses this specific problem with the least complexity?