The web server first checks if the cache has the required data If yes, it fetches the data from the cache Else, the web server queries the database and stores the data in cache Sources (Done) Scale From Zero To Millions Of Users by ByteByteGo Related Notes