Making .NET 7’s NEW output cache scale with Redis

  Рет қаралды 32,078

Nick Chapsas

Nick Chapsas

Жыл бұрын

Check out my courses: dometrain.com
Become a Patreon and get source code access: / nickchapsas
Hello everybody I'm Nick and in this video I will show you how you can integrate Redis into .NET 7's brand new output caching. Using a distributed cache that is extremely fast and scalable, like Redis, will allow you application to scale horizontaly while using one single cache for all your responses.
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: bit.ly/ChapsasGitHub
Follow me on Twitter: bit.ly/ChapsasTwitter
Connect on LinkedIn: bit.ly/ChapsasLinkedIn
Keep coding merch: keepcoding.shop
#csharp #dotnet #caching

Пікірлер: 50
@Arkensor
@Arkensor Жыл бұрын
Thank you, I was waiting for this one :) Now please also make a video how to make the new rate limiting shared via redis and then we have everything we need from an expert!
@juanprosales
@juanprosales
I liked the video, it's a great example of how to find solutions where there is not official support. At this point there is package from Microsoft: Microsoft.AspNetCore.OutputCaching.StackExchangeRedis
@IceQub3
@IceQub3 Жыл бұрын
Thank you for the great video!
@antonmartyniuk
@antonmartyniuk Жыл бұрын
Nice, looking forward for an official implementation
@gordonfreimann
@gordonfreimann Жыл бұрын
That's what i have been waiting for!!
@rade6063
@rade6063 Жыл бұрын
Such a great video
@waltavista
@waltavista Жыл бұрын
Great video. A good practice for production environment could be to have a InMemoryCache as first level and RedisCache as second level to combine both worlds.
@arumugamkandhasamy5252
@arumugamkandhasamy5252 Жыл бұрын
Awesome 😎 great video. It is very useful.
@supern4ut3
@supern4ut3 Жыл бұрын
Awesome!
@teodorchirileanu
@teodorchirileanu Жыл бұрын
Nice
@thanhdungnguyen6816
@thanhdungnguyen6816 Жыл бұрын
thank bro
@adamdiament3214
@adamdiament3214 Жыл бұрын
Thanks Nick. Do you know how we cache authenticated requests?
@SlackwareNVM
@SlackwareNVM Жыл бұрын
For the MemoryOutputCahceStore, any idea why they'd choose to use a dictionary and do their own locking over using a ConcurrentDictionary?
@marcotroster8247
@marcotroster8247 Жыл бұрын
Great stuff. Finally memoization is making it into .NET alongside endpoints defined by lambdas 😂
@astralpowers
@astralpowers Жыл бұрын
I'd really like to use output cache in my code, the evictByTag is required for my use case. But I'd need to convince my project manager to use .NET7. I hope they'll release this component as a nuget library that can be used in .NET6.
@bshwanmuhamad7165
@bshwanmuhamad7165 Жыл бұрын
Is there a way to cache responoses for authenticated user using JWT Token? I know it’s a bad practice to cache responses when JWT is present since the data may vary based on the user, but i was wondering if there is a way to cache the response for individual users? And is it even a good practice to do so?
@aurinator
@aurinator Жыл бұрын
Just catching this one but it would have been a perfect example to implement using TDD/BDD, you knew exactly the response that would have been a pass for the created test. And you could have taken it even further with a test that validates caching logic is working as expected.
@johnli7818
@johnli7818 Жыл бұрын
I am new to this one, in RedisOUtputCacheStoreCoolectionExtention. why decalre two static functions with same name and basically same content inside it?
@SONHITOO7
@SONHITOO7 Жыл бұрын
Plz provide Previous vedio link
@oguzhan2393
@oguzhan2393
Couldn't find the previous video can you send here please thanks
Why .NET's memory cache is kinda flawed
14:13
Nick Chapsas
Рет қаралды 55 М.
Writing C# without allocating ANY memory
19:36
Nick Chapsas
Рет қаралды 146 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 29 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 26 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 30 МЛН
On .NET Live - Every Cache a Painting
1:00:46
dotnet
Рет қаралды 3,9 М.
NestJs caching with Redis
18:17
Computerix
Рет қаралды 5 М.
Write cleaner APIs in .NET 7 with MediatR
15:25
Nick Chapsas
Рет қаралды 59 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 348 М.
Why all your classes should be sealed by default in C#
11:43
Nick Chapsas
Рет қаралды 92 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 55 М.
The INSANE performance boost of LINQ in .NET 7
11:34
Nick Chapsas
Рет қаралды 158 М.
How IEnumerable can kill your performance in C#
11:02
Nick Chapsas
Рет қаралды 115 М.
You are doing .NET logging wrong. Let's fix it
25:29
Nick Chapsas
Рет қаралды 171 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 29 МЛН