What is Redis and What Does It Do?

  Рет қаралды 247,655

CBT Nuggets

CBT Nuggets

3 жыл бұрын

Start learning cybersecurity with CBT Nuggets. courses.cbt.gg/security
Trevor Sullivan covers the Redis cache service: what it is, what it does, and how it helps. It's an open source tool that runs as a service in the background that allows you to store data in memory for high-performance data retrieval and storage. That's the technical explanation, but watch on to hear about how useful it is for all manner of use cases.
Imagine you have a web application that's running inside a Docker container or directly on a server. If that web application needs to retrieve some data from a database like MySQL, PostgreSQL or MS SQL, that query could take anywhere between 15 and 60 seconds.
If you have a user waiting up to a minute for the performance of that report data or whatever data the user is trying to receive, you're going to have an unhappy user. A redis cache speeds all that up.
It's possible to store data inside of a Redis cache instance and make the retrieval of that data occur directly from memory (RAM) from a server that's running the Redis service - rather than making the application go all the way back to the database. Instead, the web server can check with Redis if it has the data it wants.
Redis isn't particularly valuable when it's standing in-between one web server and a database. But, what if you're running a large scale fleet of hundreds of webservers? One Redis cache can pool the requests and answers for all those webservers so that they don't have to individually go all the way to the database each time.
📁 Download the Ultimate Sysadmin Cert Guide: blog.cbt.gg/2c97
⬇️ 4-Week Study Plan: MD-100 & MD-101: blog.cbt.gg/k0q7
Start learning with CBT Nuggets:
• Intro to Cloud Computing | courses.cbt.gg/brk
Not a CBT Nuggets subscriber? Start your free week: www.cbtnuggets.com/signup
-----------------
Connect with CBT Nuggets for the latest in IT training:
• Twitter - / cbtnuggets
• Facebook - / cbtnuggets
• Instagram - / cbtnuggets
• LinkedIn - / cbt-nuggets
#redis #docker #mysql #ittraining #cbtnuggets

Пікірлер: 168
@pinxtr
@pinxtr 3 жыл бұрын
My man looks like he's putting tutorials straight from Antarctica
@opossum4463
@opossum4463 2 жыл бұрын
He looks like the CEO of a certain fortune 500 company. And that can't be a bad thing.
@opossum4463
@opossum4463 2 жыл бұрын
I mean, minus the nose ring.
@samarth319
@samarth319 2 жыл бұрын
I think he looks pretty similar to Twitter's CEO Jack Dorsey...
@kw19991
@kw19991 Ай бұрын
This is why indexes were invented, to reduce retrieval time for a query.
@RedisUniversity
@RedisUniversity 3 жыл бұрын
Couldn't have put it better, great work!
@lajos108
@lajos108 Жыл бұрын
I started a LinkedIn course on Redis, just to see what is it about. After 20 minutes I started to search on KZfaq for a summary of Redis and get the meaning of it in short time. This explanation is short, understandable, just great. Thanks!
@riskitall7421
@riskitall7421 2 жыл бұрын
Awesome explanation Trevor. Breaking down problems into dummy understanding is an art.
@courageahorttor7666
@courageahorttor7666 2 жыл бұрын
Awesome elaboration. He hit the nail straight to the point
@Shubham__Saroj
@Shubham__Saroj 2 жыл бұрын
real quick and awesomely covered in less time.
@StrikerEureka85
@StrikerEureka85 2 жыл бұрын
FINALLY! a clear explanation as to what it actually does. thank you for this.
@PowerUsr1
@PowerUsr1 2 жыл бұрын
This is a really good video. I’m a network engineer playing with docker and I’ve seen this a few times. Always wondered what it is.
@Acumen928
@Acumen928 3 жыл бұрын
Just what I needed.
@rednejiv123
@rednejiv123 3 жыл бұрын
Excellent video! Thanks a lot.
@kunalb2051
@kunalb2051 3 жыл бұрын
Best video on Redis ❤️
@didorins4994
@didorins4994 Жыл бұрын
Thanks for starting from User experience, so we can understand the use-case clearly.
@stevendaddario8803
@stevendaddario8803 2 жыл бұрын
Wonderful Video! Thank you for the clear explanation!
@osmangani4966
@osmangani4966 2 жыл бұрын
simple and clear, to the point.......really like the way you explain.
@jackcastro9583
@jackcastro9583 2 жыл бұрын
i agree with your thinking!🥤cheers🥤
@Food.5inder
@Food.5inder Жыл бұрын
Awesome dude... simple and crispy explanation. Keep it up appreciate.
@Paul_Aderoju
@Paul_Aderoju Жыл бұрын
Thank you so much. Heard Vercel recently implemented a Key-Value system, and it’s a Redis-like data system. This video gave me a good overview of Redis.
@user-cw9vj4sl5l
@user-cw9vj4sl5l Жыл бұрын
Clean and clear. Thank you very much!
@baolam4180
@baolam4180 Жыл бұрын
awesome explanation and greatly clear english speaking. I can fully listen to you without looking at the sub. Well done!
@davidmunyiri6147
@davidmunyiri6147 6 ай бұрын
That's a nice explanation Trevor, i like the way you explained bit by bit to understanding level
@rehamalbulushi520
@rehamalbulushi520 2 жыл бұрын
thank you for such a quick useful explanation
@shantanu143
@shantanu143 2 жыл бұрын
awesome. simple and explained with diagrams !
@user-rj8yv5nz3f
@user-rj8yv5nz3f 10 ай бұрын
thank you, it was so helpful
@BassZeke
@BassZeke 2 жыл бұрын
Fantastic! concise. clear
@shadymilkman10
@shadymilkman10 2 жыл бұрын
That was a great breakdown thanks!!!
@williamfriedeman7078
@williamfriedeman7078 2 жыл бұрын
Wonderful tutorial, thank you.
@Kirimoshi
@Kirimoshi 5 күн бұрын
I like the way you explain things, please keep going 👍
@martinkarkovich3037
@martinkarkovich3037 2 жыл бұрын
excellent explanation!
@edwardfraser688
@edwardfraser688 3 жыл бұрын
Great explanation thanks.
@ekanastone
@ekanastone 3 жыл бұрын
I thought u were Jack Dorsey at firsts lol
@hangout7081
@hangout7081 2 жыл бұрын
😂 me too
@musaopaluwa2580
@musaopaluwa2580 2 жыл бұрын
🤣🤣🤣🤣
@mdbasaz
@mdbasaz 2 жыл бұрын
Me too
@akeinchina
@akeinchina 2 жыл бұрын
lol, me too.
@user-td5gy2fh3p
@user-td5gy2fh3p 6 ай бұрын
Lmfaooooooooo 😂😂😂
@user-xx2td2mf6b
@user-xx2td2mf6b 2 жыл бұрын
very clear explanation. make us impressed a lot.
@Banjer
@Banjer 6 ай бұрын
Excellent explanation!!!
@mohammadzulqarnain6288
@mohammadzulqarnain6288 2 жыл бұрын
Simple and precise, it made me recall how my fried explained me about Redis and Guava caching but unfortunately i dont recall the difference btw them.
@koders9778
@koders9778 3 жыл бұрын
This was very helpful. Thanks sir!
@cbtnuggets
@cbtnuggets 3 жыл бұрын
We're so glad it's helpful for you! Thank you for learning with us.
@vop0092
@vop0092 Жыл бұрын
Awesome explanation in easy way ❤
@MrPx0727
@MrPx0727 2 жыл бұрын
Very good in explaining Redis serving as a cache system; would be nice to expand to all important features of Redis ...
@francoisbourdages2906
@francoisbourdages2906 2 жыл бұрын
thanks, very well explained and clear
@ann_uken
@ann_uken 11 ай бұрын
Thank you for your great explanation! 💥
@rasnacv3802
@rasnacv3802 2 жыл бұрын
Thank you for this content. very helpful
@indrranil24
@indrranil24 Жыл бұрын
awesome loved it!!!!
@canyoldas2855
@canyoldas2855 7 ай бұрын
Very informative. Thank you.
@renyirish
@renyirish 4 ай бұрын
Excellent explanation, thanks a lot 🤗
@sandhyakaranam6113
@sandhyakaranam6113 2 жыл бұрын
great explanation , thank you
@gagang.r684
@gagang.r684 Жыл бұрын
Thank you. It cleared all my doubts😀
@darrenklein6090
@darrenklein6090 Жыл бұрын
Thanks, that was very helpful.
@tylercode2207
@tylercode2207 Жыл бұрын
That was really helpful...Thank You!!
@niponchanda8356
@niponchanda8356 2 жыл бұрын
Greatly explained
@adamdymurski9342
@adamdymurski9342 10 ай бұрын
Good for start. Thanks 😊
@quirkyquester
@quirkyquester 2 жыл бұрын
Great video!
@rahimeinollahi1
@rahimeinollahi1 2 жыл бұрын
thanks for creating this video,
@globalclutter9508
@globalclutter9508 3 жыл бұрын
Very informative.
@ns4k_tv
@ns4k_tv Жыл бұрын
Thanks! Helped me alott!!
@Joop5037
@Joop5037 6 ай бұрын
Very good explanation.
@aparnasaha9729
@aparnasaha9729 2 ай бұрын
excellent explanation
@workpfeiffer3428
@workpfeiffer3428 Жыл бұрын
good explanation. thakns a bunch
@mirishfaqhussain9302
@mirishfaqhussain9302 2 жыл бұрын
awesome explanation jack dorsey
@thiagocnunes
@thiagocnunes 2 жыл бұрын
Amazing content, tkss
@diet92
@diet92 Жыл бұрын
Well understood 😎. Thanks
@IchEsseKonsolen
@IchEsseKonsolen 3 жыл бұрын
Liking for the adorable outro. It HAS been informative for me!
@DebbieGOfficial
@DebbieGOfficial Жыл бұрын
Well explained
@rupeshsingh3607
@rupeshsingh3607 2 жыл бұрын
Nice video Sir ,please carry on ,nice voice clarity and representation
@xtianseyer018
@xtianseyer018 Жыл бұрын
Thank you for this
@chriskaye1997
@chriskaye1997 2 жыл бұрын
Truly a great beard, so wow! much wisdom!
@kinax2
@kinax2 2 жыл бұрын
What if the user has updated he is info, Would the user get an old data or new data?
@brighteragyemang8765
@brighteragyemang8765 3 жыл бұрын
Thank you!
@xxxxxGhostBoyxxxxx
@xxxxxGhostBoyxxxxx 2 жыл бұрын
the beard is an indicator of experience
@hackcodesfree9200
@hackcodesfree9200 Жыл бұрын
super explained
@juejuepaing6985
@juejuepaing6985 2 жыл бұрын
Thank you
@ThefamousMrcroissant
@ThefamousMrcroissant 2 жыл бұрын
Aha, so basically an in memory cache. Very well structured video; shows the problem and how Redis attempts to solve it, making it intuitive to grasp its purpose.
@deedoodeedoo6382
@deedoodeedoo6382 2 жыл бұрын
@Alek Wolf I'm a complete beginner at Redis, but this seems to be a general software problem. Since Redis is an in-memory app that strives to use cache, to decrease the wait time for common data queries, it is based on RAM usage. Since it is based on RAM usage, it's limited by the RAM provided with the machine. I don't think BigData ever was a viable target for usage of Redis. BigData can return huge responses to queries and it's not really feasible to hold it all in limited RAM, a few bigger reports and OOM is achieved. I suppose at that point a better approach would be putting in resources to speed up the access to BigData resources and optimizing queries.
@adityamittal4357
@adityamittal4357 Жыл бұрын
This isn't what redis is, this is just an explanation of how a cache works. Caching is just one use case for redis. This video will make beginners think that redis is a cache, which is false. Redis is an in-memory key-value store with pub-sub model with many use cases such as creating event streams in architecture beyond mere caching.
@sire_pandey
@sire_pandey 3 жыл бұрын
thank you ,Sir
@zmark2274
@zmark2274 2 жыл бұрын
That easy, thank you
@alexandroskourtis5268
@alexandroskourtis5268 3 жыл бұрын
greeeaaat video
@juneldomingo6277
@juneldomingo6277 Жыл бұрын
Great explanation! wonder what will happen to traffic if the redis goes down? will the web goes down as well as it cant retrieve data from cache? or will the web traffic will go directly to the database. Thanks
@kaushikdr
@kaushikdr 2 жыл бұрын
I have to admit, I was initially distracted by your glorious beard! :D I have a few questions I hope you can clarify - 1) Why is querying Redis faster than directly querying a database - is it because there is less amount of data to search from? Also, at what point does the cache start removing data? Is the oldest data removed first or is it the data that is accessed least often? 2) If we are using a cache worker to update the Redis cache every time there is a change to the database, why is this any faster than just directly querying the database? It seems that in this case, the Redis cache contains the same amount of information as the database and that the database would be updated before the Redis cache anyways.
@jordanpedroinvestimentos
@jordanpedroinvestimentos Жыл бұрын
Good video
@fireystella
@fireystella 2 жыл бұрын
Thank u!
@shalinijaiswal5718
@shalinijaiswal5718 2 жыл бұрын
insightful
@mazdanaqvy3754
@mazdanaqvy3754 Жыл бұрын
Thanks
@vishalk2798
@vishalk2798 2 жыл бұрын
Well i had a query how long does the redis store a cache for is it for days or hours as if the cache does not clear then the redis cache size would get full right
@androidsavior
@androidsavior Жыл бұрын
where is the next video ? i cant find it
@ShukyPersky
@ShukyPersky 3 жыл бұрын
Sounds interesting 1. What are the memory requirements in the case of a large-scale database to keep this solution effective? 2. How effective this solution for a system that generates random access to a large-scale database? in which case Redis cache would require a lot of memory to stay effective I think that these topics should be referred to by the video.
@cbtnuggets
@cbtnuggets 3 жыл бұрын
Hi Shuky, thank you for your questions. It will really depend on the load and amount of data, but there are some profiles in AWS and Azure that will be for enterprise requirements up to 14TB of memory. docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-planning-faq#azure-cache-for-redis-performance This is a good break down of some performance recommendations. We hope this is helpful! Thank you for learning with us.
@navid045
@navid045 3 жыл бұрын
Very good, great accent
@bsummer
@bsummer Жыл бұрын
Wish we all Had Guys like this before College. Redis, which stands for Remote Dictionary Server cements it
@muhammedmusharaf386
@muhammedmusharaf386 2 жыл бұрын
Thankyou
@salahalhashmi6528
@salahalhashmi6528 2 жыл бұрын
thanks
@ans42101
@ans42101 Жыл бұрын
Thank you for the explanation, you made it simple to understand.
@MatichekYoutube
@MatichekYoutube 4 ай бұрын
thanks, ..
@briarsmith8241
@briarsmith8241 Жыл бұрын
Cache hit on the explanation
@none0n
@none0n Жыл бұрын
Thanks for the great explanation. So in order words, without a cache workers, redis won't be aware of new data and there is always the risk to fetching stale data?
@LooneyTunesCarrot32
@LooneyTunesCarrot32 6 ай бұрын
So does this mean that the redis caching service will only be a hit if there has already been an existing query on the DB? Also, will the cache itself ever get too full, then what?
@ranjeetbadhe
@ranjeetbadhe Жыл бұрын
Can you please let us know how the Redis implementation in Openstack Controller works?
@BlueDolphinBlues
@BlueDolphinBlues Ай бұрын
Hi Trevor Sullivan
@krishnashah6654
@krishnashah6654 2 ай бұрын
Store data in a redis cache instance and retrieve that data from the RAM of the server that’s running the service. Initially the instance doesn’t have any data instead of it’s config data.
@nicklowe_
@nicklowe_ Жыл бұрын
I’m not totally clear how the amount of RAM allocated to a docker instance would be able to hold any substantial amount of data from a database. I understand how this is useful for commonly queried data, but wouldn’t the service have to be very selective in what it chooses to cache? And don’t we have to worry about available RAM for the web server? Does Redis ever battle the server for resources?
@whatthefunction9140
@whatthefunction9140 3 жыл бұрын
I used to hit the cache pretty hard in college.
@duartelucas5746
@duartelucas5746 Жыл бұрын
is there a follow up on this, or is this part of some series that is available elsewhere? Thanks in advance!
@cbtnuggets
@cbtnuggets Жыл бұрын
You can check out the course here: www.cbtnuggets.com/it-training/devops/redis-essentials If you're not a current subscriber, you can sign up for a FREE 7-day trial to watch: training.cbt.gg/sbp
@duartelucas5746
@duartelucas5746 Жыл бұрын
@@cbtnuggets Thank you very much!
@mikkeljensen1603
@mikkeljensen1603 Жыл бұрын
save your self the trouble and just use redis as a database, it is amazing
@spongechameleon6940
@spongechameleon6940 2 жыл бұрын
So is the preferred pattern to have your webserver do all reads from redis, and all its writes to the database? Then run a cache worker so that the cache gets updated automatically?
@adityamittal4357
@adityamittal4357 Жыл бұрын
This video isn't what redis is, this is just an explanation of how a cache works. Caching is just one use case for redis. This video will make beginners think that redis is a cache, which is false. Redis is an in-memory key-value store with pub-sub model with many use cases such as creating event streams in architecture beyond mere caching. Redis is a tool, like a nail, your preferred pattern in how to use it depends on your architecture which you need to create.
@nadirzeeshan1230
@nadirzeeshan1230 2 жыл бұрын
SQL server already has buffer cache where it stores frequently used data from database. This helps in fast data retrieval. How is redis different from SQL Buffer cache ?
@CodeWavewithShahHussain
@CodeWavewithShahHussain 2 жыл бұрын
If using sql then i think no need to use redis
@mimosveta
@mimosveta 3 жыл бұрын
well, another thing to learn about
@sangtengkorak1954
@sangtengkorak1954 2 жыл бұрын
I see no one is make it, so I'll do. You know extension of redis name? Redis what? Redis nutz Great video all in all, thanks for the explanation.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 603 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 596 М.
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 527 М.
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 85 МЛН
2. What Makes Redis Special? | Redis Internals
22:04
Arpit Bhayani
Рет қаралды 33 М.
What is RAG? (Retrieval Augmented Generation)
11:37
Don Woodlock
Рет қаралды 108 М.
Containers vs VMs: What's the difference?
8:08
IBM Technology
Рет қаралды 745 М.
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 258 М.
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 682 М.
Top 5 Redis Use Cases
6:28
ByteByteGo
Рет қаралды 169 М.
Multicast Fundamentals
9:05
Allied Telesis
Рет қаралды 136 М.
System Design: Why is single-threaded Redis so fast?
3:39
ByteByteGo
Рет қаралды 292 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.