Dual-Layer Caching
React Query on the client + Redis on the server. Client cache gives instant back-nav and optimistic updates. Redis offloads the database and shares cached results across all users — so 1,000 users viewing the same dashboard don't run 1,000 queries.
Every page load hits the database. No cache = slow responses under load.
Redis serves cached API responses in <5ms. Database only queried when cache expires or data changes.