How to use Redis Caching for Incredible Performance

preview_player
Показать описание
Caching database queries with Redis can be an incredible way to speed up your API responses. That will not only cost you less database quota but drastically improve user experience as well. Let's see you how can implement super fast caching for yourself!

I wish you a lot of fun implementing caching and seeing the results for yourself. Let me know if you build something cool with it! Cheers
Рекомендации по теме
Комментарии
Автор

This is very interesting and useful. It will be great if you consider a more in depth video about Redis. For example how to update the cashed data if it is updated in the DB? How to delete cashed data if it is deleted in the DB, best practices, etc. Great video!

cryptnerd
Автор

Thanks for the tips. Quick advice: always show how to invalidate cache for these kind of tutorials (as this is an important step in any caching process).

youneshenni
Автор

This usage Redis + Prisma is so smooth ❤

codewithguillaume
Автор

Great video to get started with redis!

TheNicolaas
Автор

Redis is really known as a caching layer but it's also an extremely capable primary database. If you can fit your data into RAM and work with the data structures Redis gives you, you will be a happy camper.

JT-mrdb
Автор

Your explanation of how it works was brilliant - thank you 💕💕
You are clearly a brilliant man. Your skills at teaching are fantastic

learnwhispering
Автор

Hey Josh, Great tuts! However I kind of get more curious about more advanced usage of redis. Could you make a dedicated video on redis? That would help a lot. Thanks. Great weekend!

ScriptCodec
Автор

Thanks for this video Josh! Loved how easily you explained the entire concept!

mohaniya
Автор

Thanks for this short, to the point and keeping is simple video. Keep it up 👍

adnanniaz
Автор

Life saver, added this to my project thanks

eshw
Автор

I really need to try this 😊, tons of usage

raymondmichael
Автор

Its cool but it could be a lot slower than just using the database directly if you using redis on cloud. If you backend need to connect via tcp to a different server anywhere you have a fast lookup but a slower response than using the local database directly. It would only make sense if you have very large requeste.

But in general in memory caching is a really good idea but you loose manually editing the database manually (which is not recommended anyway)

But good video as always!

GamingClubGermany
Автор

Loved this video, I am having problem with nodemon(in TS project), used ts-node but still not restarted on changes. can you please suggest a way to auto detect the file changes and compile and restart the server just like nodemon in js ?

AmanRaj-zobx
Автор

how do you return NEW data from the database if it's always checking redis first?

roncanfil
Автор

Hey Josh 🍺, would Redis be a good place for storing the output (a very long string) of a rich text editor like React-Draft-Wysiwyg? Also, how could I store a link to it in my PostgreSQL database?

zoki
Автор

Nice one on Redis! Whats if data should be checked to see if its updated at db for objects a bit more dynamic?

DinoRossYT
Автор

Very good video, I congratulate you. I ask you a question, suppose I have an application with a mysql database, my app calls an api to query and show products to the user, if I implement you Redis to cache the busquedaby that the api first see if you have stored in cache and if not just then go to query the database, with the first user who enters the app Eedis stored in the server cache and then if another user comes and asks to see the products would be set in that cache even if they are different users? The cache has a time and then it is deleted and the search to the database is done again, right? Thank you very much

testtest-cz
Автор

Hi Josh, can we do data manipulations directly in reddis cache and push the changes to the Database table without loading data from reddis cache to data table and manipulating the data? In my case data table cannot hold tons of data.

karthiksharmaslife
Автор

Correct me if I’m wrong: doesnt Nextjs automatically implement this with their extended fetch API? If a fetch has the same parameters as before it would return the cached value. What’s the difference btwn that and Redis caching?

Jack-hkkl
Автор

How useful is this with nextjs automatic caching?

Tyheir
visit shbcf.ru