Redis In-Memory Database Crash Course
Vložit
- čas přidán 9. 07. 2024
- Redis is a noSQL key-value store, in memory database first that exploded in popularity in the past few years. In this video slash course, we will explain what Redis is, talk about the in-memory model, the optional durability, replication, clustering publish subscribe and the protocol and finally we will go through examples. During the video I will add time codes to each topic so you guys can jump to the topic that interests you the most.
Download Slides here
payhip.com/b/rOlJ
(Members get all slides for free. Become a Member to support the channel)
/ @hnasr
0:00 Intro
0:30 Why Redis became the most popular Database
12:20 Redis Crash Course
Table of Content and TimeCodes
Commands
Docker run --name redis -p 6379:6379 redis
docker exec -it rdb redis-cli
🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast
🏭 Backend Engineering Videos
backend.husseinnasser.com
💾 Database Engineering Videos
• Database Engineering
🏰 Load Balancing and Proxies Videos
• Proxies
🏛️ Software Archtiecture Videos
• Software Architecture
📩 Messaging Systems
• Message Queues & PubSu...
Become a Member
/ @hnasr
Support me on PayPal
bit.ly/33ENps4
Join our Thriving Backend Community on Discord
/ discord
Stay Awesome,
Hussein - Věda a technologie
Learn the fundamentals of database systems to understand and build performant backend apps
Check out my udemy Introduction to Database Engineering
husseinnasser.com/courses
Hello Nasser, your content is brilliant and the way you talk and present tops it. Its like having a coffee table discussion with you about a topic(my role being a good listener). I leant a lot of concepts at its core. I have been looking for a content like this for long. Big thanks man!
I did not have seen that many tutorials/crash course as good as yours to follow!😁 for me it was perfect. Entertaining and still got all the Infos I wanted/needed.
Thank you! Keep on!
I know this is off topic. One thing I love about Hussein's manner of speaking, is that he doesn't sound weird at 1.5x speed, which is very rare. :)
yeayea
Hussein you are the man! I recommend all my coworkers to your channel.
Much appreciated !!! Thanks
Man you are the best! I cannot believe that you don't have a million subscribers! I love your work and I have learned a lot of it! Thank you so much! Greetings from Mexico
Thank you Ricardo! ❤️ love to all my subs from beautiful Mexico 🇲🇽
The only CZcamsr who asks you to skip to the content you love so that you don't waste your time, instead of increasing his watch time!
Thanks for this. I've been needing a refresher. Appreciate you Hussein. See you soon!
This video is done, waiting for part-2 of the crash course. Where you'll give examples of clustering & replication with redis. 🥰🥰🥰
Hussein thanks a lot I learned a lot from you. Baraka laho fik.
Hello Mr. Nasser, Your way of presenting the topic is really awesome and way different than typical lecturing, I loved the content and listening the videos. lot of regards from India.
You made Redis like a piece of cake to understand. Great video now I am going to learn Redis also.
You are the sole reason I concurred my fear of backend/servers and now am I actually half decent backend developer
*conquered. But congrats
Great video Hussein. The first in-memory database I worked on a couple of years back was TimesTen. We usually use this along with the main Oracle DB for caching aggregates. You can sync data, mostly aggregates for faster reporting defaulted to that particular aggregation hierarchy.
Good starter video. Would love more coolish stuff from redis :)
Great video, very infomative, I love your style.
Here are my 2 cents about HTTP vs TCP:
If I was designing a DBMS I would also use TCP. HTTP uses TCP in the background. TCP keeps permanently open socket connection, whereas HTTP closes the socket connection after each request/response cycle, and that adds overhead to communication. Also with TCP you can have just as much security as with HTTP with TLS, since it's the same underlying principle.
You're my favourite tech CZcamsr. You honestly deserve more than a million subscribers. Thank you for putting out such a good content. More power to you.
God level explanation!
Perfect timing!
Thanks!
Thanks very much for this video.
3:34 In Latin, "per cent" means "out of hundred"
So people commonly write it as one word
Credit to Eddie Woo
splendid🤗
Thank you so much sir.
Am I the only one hit like button then watch ? You earned my trust
❤️❤️❤️❤️
redis is simple to install, configure and use , with sdk s available for all major programming languages and good performance out of the box. it’s no surprises we all love it.
I have upcoming interview at big unicorn startup and I have to complete take home assignment which has redis implementation, I will update you after passing it....
love you sir.
How is it going?
shukran gazilan
So you can use Redis as your primary DB? No caveats?
Imagine, REDIS with non volatile memory, like the future ReRAM as your storage.....the perfect match, Millions of Rps on a commodity server. Everybody will choose REDIS and the infrastructure will be simplier (no more cache all in non volatile memory accessible in sub millisecond). For me, REDIS with ReRAM is the futur. No need of Snapshop or AOF, no care about the size of the memory, the dream.
You can use the arrow keys to navigate between previous commands or use !! to get the prev command
Great tip!!! Thanks
My god, I want to do blow with this guy and see what genius startup we come up with
Do you know what to explain in part 2
Good Job. If it possible Do Memcached with Node.js or PHP
i was just watching the old redis video lol
Doesn't Http use tcp? You are comparing an application layer with transport layer. I guess Resp and Http are comparable. Correct me if wrong.
28:00 TCP and HTTP aren't competing protocols. TCP is a transport layer protocol and HTTP is an application layer protocol. In fact HTTP uses TCP in transport layer.
I think he didn't insinuate that they're competing. As you mentioned, HTTP is built on top of TCP so there's always going to be some overhead when using HTTP instead of TCP. For example, HTTP would parse headers, format of data etc
I think what he's curious about is if these overheads outweigh the benefits of using HTTP
@@ladmerc agreed. He’s just wondering why most other databases (not all) are creating their own protocol on top of raw TCP (this is what Redis does), instead of just using the new HTTP/2 where you can keep the TCP connection open and streams requests back and forth. Using QUIC (soon to be HTTP/3) is also an option.
hi, Hussein i have a question and it will not take long to answer so, plesase answer it
question: just after completing high school i had purchased a web development course and learned a lot. After some 3-4 months i endup with a job. It is now 4 months of job. at this point i am enjoying and also learning a lot from nice gurus like you. But i want to go more deeper into computer science like how operating systems, db systems, cpu executes instructions works, do i need to join college to learn all these stuffs or i can learn by my own by joining some good community, opensource, reading book etc.
You can learn them by yourself.
Hussein himself has courses for both db & os fundamentals.
@hussain you can append ?sub_confirmation=1 in channel link on your website, it will ask if user wants to subscribe in a pop-up
I think couchdb uses http as the protocol
Hey! Hussain. How about collaborating on building an Http based Database? 😎
I think single is best for system need fast response but multi needed in task need time like data anlize and data Science
or Processing video or images and i think non block single thrid like nodejs its gorgeous..
At the end of the day nodejs use multi at the behind of the seen.. but its still single 😂😂.
like javascript its not single thrid language but in browser it is..
and new we can use multi in browser
it called web workers..
why are we calling pub-sub instead of queue ?
What about streams ?
They are quite trikey , I have been hunting for a way to deal with them , the only approach I found is people using custom data frames and processing them as a sequence of json strings.
I wish if someone is familiar with dealing with streams would give his/her opinion
@@mohamedhabas7391 the few videos I have looked are examples of how to use them but no real use case the video are with Salvatore Sanfilippo himself (2 years ago) he does it quickly in vim in front of us but not only he is well prepared but we can imagine that he knows intrinsically what he is talking about
you babble too much of unnecessary things and diverted from the topic so many times