Cache the Video Watch Page
Medium About 30 min Katabench Pro
Every premiere viewer reads the same watch-page rows. Cache the metadata reads; the video bytes keep their own uncached path to storage.
The full brief is part of Katabench Pro
Pro opens this kata's brief and its grader. To see how the track works first, try Cache the Hot Path, which is free with an account.
How it is graded
You build the design on a canvas, and Katabench checks the topology against the challenge's design rules.
What it practices
- Caching
- Put a cache in front of hot reads and decide what stays fresh.
Related katas
- Cache the Hot Path Medium Free with account The product page hammers the database directly and melts under load. Design a read path with a load balancer, a cache and a replica, while keeping the client off the database.
- Fan Out Home Timelines Medium Free with account Reading every followed author on demand is collapsing the database. Publish post events and materialize timelines asynchronously.
- Cache DNS and Robots Rules Medium Pro Share DNS answers and robots policy across fetchers so repeated control lookups do not dominate the crawl or violate site rules.
- Cache the Redirect Medium Pro Reads outnumber writes a thousand to one and every redirect still hits the database. Cache the read path only (writes go around it) and give the links a replica.