System Design Patterns: From Fundamentals to Real Systems
0% completed
Write-Behind
The flash sale opens at 10:00 AM. Its headline product is product 4417, a pair of wireless earbuds, and its page shows "1,204,311 people viewed this today." Every page view adds one to that number with one SQL statement: UPDATE products SET views = views + 1 WHERE id = 4417. On a normal evening, this statement runs a few dozen times per second, and nobody notices it. Most of the product's 4,000 reads per second then come from search results and cart previews, which do not count as views.
At 10:00:00, the product page starts to receive 12,000 views per second
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%