Adding a cache is not as simple as it may seem...

Adding a cache is not as simple as it may seem...

115.428 Lượt nghe
Adding a cache is not as simple as it may seem...
Knowing what the expect and how to mitigate the issues with caching is the first step towards a successful caching implementation. Adding a cache is usually a good way to reduce load on your database, but it does come at the cost of increased complexity. This video looks at the most commong caching pattern, and the problems that can occur. This video was sponsored by Aiven. Their platform is used in the video for a free tier of Redis and PostgreSQL. To get your own free Redis and PostgreSQL instance, sign up at https://go.aiven.io/dreamsofcode #postgres #redis #caching GitHub Project: https://github.com/dreamsofcode-io/spellbook The information in this video is found in this whitepaper by AWS. https://docs.aws.amazon.com/whitepapers/latest/database-caching-strategies-using-redis/caching-patterns.html Become a better developer in 4 minutes: https://bit.ly/45C7a29 👈 Join this channel to get access to perks: https://www.youtube.com/channel/UCWQaM7SpSECp9FELz-cHzuQ/join Join Discord: https://discord.com/invite/eMjRTvscyt Join Twitter: https://twitter.com/dreamsofcode_io 00:00:00 Intro 00:00:35 Cache Aside 00:01:01 Implementation 00:06:52 Cache Invalidation 00:07:28 Eviction Policy 00:09:15 Key Expiration 00:10:37 Write-Through Caching 00:12:49 Outro