Learning on Web Dev Open is free for all.

System Design & Performance > Caching as architectureCaching inside the application
Phase 06Caching as architecture309 of 434

Caching inside the application

Memoise an expensive computation, add a shared cache, and then break it deliberately with two instances and a stale write.

Build45 minAI pair

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Add a shared cache in front of an expensive query
  • Measure hit rate rather than assume it
  • Demonstrate a staleness bug and then fix it
Ask the community

Loading…