4 database caching strategies for scaling applications

When ๐˜€๐—ฐ๐—ฎ๐—น๐—ถ๐—ป๐—ด ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ the database is often one of the bottlenecks. Caching is an effective way of reducing load on the database engine and increase response speed of the application.

The diagrams above describe the four most common caching patterns: cache-aside, read-through, write-through and write-behind. Which one to chose depends on your application.