🚀 ASP.NET Core: Faster Api with Multi-Layer cache!

preview_player
Показать описание
Speaking of caching, you may already have in-memory or Distributed cache (like Redis) in your application but both approaches have some issues.

In-memory cache can't be used when you have distributed systems and multiple instances of your Api, since it's memory specific.
Distributed cache has the issue of I/O operation and network latency.

Can we merge both approaches? Yes for sure!
In this video, I've tried to show how to implement a multi-layer cache in ASP.NET Core.

Moments

00:00 - Intro
01:08 - Scenario
01:52 - Code Structure
03:55 - Cache Provider Interface
05:20 - In-Memory Cache
05:50 - Redis Cache
07:31 - Cache Manager
12:55 - API with Cache Manager

-------------------------------------------------
LinkedIn Profile:
Рекомендации по теме
Комментарии
Автор

Amazing explanation!! Can we have a video about cache invalidation. It'd be very interesting and helpful it's a complex topic that a lot of people face in a production environment

sergiobazan
Автор

This approach is often referred to as a "hybrid caching strategy"

bvsreyanth
Автор

Thank you so much! What about synchronization between application instances. Do you have any solution for this?

aming
Автор

Great sharing Saeed! thanks for it. could you please share on cache invalidation also please ?

Ajmal_Yazdani