Practice / Software

Put a cache in front of the database

Medium · Whiteboard

Product pages hit the database 50,000 times a second and it is struggling. There are 1 million products, about 2 KB each. Design a caching layer: what to cache, how to keep it fresh, how to spread it over several cache servers, and what goes wrong.

Create a free account to answer it and get scored on what a strong answer covers.