System Design Patterns: From Fundamentals to Real Systems
Vote

0% completed

​

Read-Through

On a weekday evening, the cached copy of product 4417, a pair of wireless earbuds, expires in Redis. The next request for it is a miss, so the product must be read again from the store database. There are two ways to write the code for that miss, and both do exactly the same work.

In the first version, the catalog service's own function does every step. It asks Redis for product:4417 and gets nothing back. It then reads the product from the database in 15 ms, stores the copy in Redis with a 1-hour TTL, and returns it

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content