Redis In-Memory Database Crash Course

  Рет қаралды 55,029

Hussein Nasser

Hussein Nasser

Күн бұрын

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

Пікірлер: 69
@hnasr
@hnasr 3 жыл бұрын
Learn the fundamentals of database systems to understand and build performant backend apps Check out my udemy Introduction to Database Engineering husseinnasser.com/courses
@surbhipaliwal879
@surbhipaliwal879 2 жыл бұрын
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!
@1realseth1
@1realseth1 2 жыл бұрын
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!
@coding_ss632
@coding_ss632 3 жыл бұрын
This video is done, waiting for part-2 of the crash course. Where you'll give examples of clustering & replication with redis. 🥰🥰🥰
@redhood7105
@redhood7105 3 жыл бұрын
You are the sole reason I concurred my fear of backend/servers and now am I actually half decent backend developer
@metabolic_jam
@metabolic_jam 2 жыл бұрын
*conquered. But congrats
@snehotoshbanerjee1938
@snehotoshbanerjee1938 2 жыл бұрын
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.
@dennysam829
@dennysam829 3 жыл бұрын
The only KZfaqr who asks you to skip to the content you love so that you don't waste your time, instead of increasing his watch time!
@SpotAllen
@SpotAllen 3 жыл бұрын
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. :)
@kellysmith7357
@kellysmith7357 2 жыл бұрын
yeayea
@rajeevsinha7884
@rajeevsinha7884 3 жыл бұрын
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.
@snghnishant
@snghnishant 3 жыл бұрын
You made Redis like a piece of cake to understand. Great video now I am going to learn Redis also.
@ricardoislasruiz3186
@ricardoislasruiz3186 3 жыл бұрын
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
@hnasr
@hnasr 3 жыл бұрын
Thank you Ricardo! ❤️ love to all my subs from beautiful Mexico 🇲🇽
@Zolo00
@Zolo00 3 жыл бұрын
Hussein you are the man! I recommend all my coworkers to your channel.
@hnasr
@hnasr 3 жыл бұрын
Much appreciated !!! Thanks
@CodingNuggets
@CodingNuggets 3 жыл бұрын
Thanks for this. I've been needing a refresher. Appreciate you Hussein. See you soon!
@coding_ss632
@coding_ss632 3 жыл бұрын
You're my favourite tech KZfaqr. You honestly deserve more than a million subscribers. Thank you for putting out such a good content. More power to you.
@isaacfrost9798
@isaacfrost9798 3 жыл бұрын
Hussein thanks a lot I learned a lot from you. Baraka laho fik.
@tech3425
@tech3425 Жыл бұрын
Good starter video. Would love more coolish stuff from redis :)
@djole010
@djole010 4 ай бұрын
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.
@yogeshchaudhary621
@yogeshchaudhary621 Жыл бұрын
God level explanation!
@avi12
@avi12 3 жыл бұрын
3:34 In Latin, "per cent" means "out of hundred" So people commonly write it as one word Credit to Eddie Woo
@joshualoew8976
@joshualoew8976 3 жыл бұрын
Thanks!
@bijeesraj007
@bijeesraj007 3 жыл бұрын
Am I the only one hit like button then watch ? You earned my trust
@hnasr
@hnasr 3 жыл бұрын
❤️❤️❤️❤️
@ajcwhite
@ajcwhite 3 жыл бұрын
Perfect timing!
@romantsyupryk3009
@romantsyupryk3009 3 жыл бұрын
Thanks very much for this video.
@indiansoftwareengineer4899
@indiansoftwareengineer4899 3 жыл бұрын
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.
@harshrai6259
@harshrai6259 3 жыл бұрын
How is it going?
@Dimich1993
@Dimich1993 2 жыл бұрын
splendid🤗
@kapilsonyt
@kapilsonyt 3 жыл бұрын
Thank you so much sir.
@mishasawangwan6652
@mishasawangwan6652 3 жыл бұрын
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.
@justafreak15able
@justafreak15able 3 жыл бұрын
So you can use Redis as your primary DB? No caveats?
@SadgeZoomer
@SadgeZoomer 3 жыл бұрын
shukran gazilan
@re1nth98
@re1nth98 2 жыл бұрын
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.
@fahadaldhafairi2322
@fahadaldhafairi2322 3 жыл бұрын
Good Job. If it possible Do Memcached with Node.js or PHP
@Dstonephoto
@Dstonephoto 3 жыл бұрын
My god, I want to do blow with this guy and see what genius startup we come up with
@kfc-enjoyer-based
@kfc-enjoyer-based 3 жыл бұрын
You can use the arrow keys to navigate between previous commands or use !! to get the prev command
@hnasr
@hnasr 3 жыл бұрын
Great tip!!! Thanks
@BhaaRaThh
@BhaaRaThh Жыл бұрын
Do you know what to explain in part 2
@avatsavirs
@avatsavirs 3 жыл бұрын
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.
@ladmerc
@ladmerc 3 жыл бұрын
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
@muhaimintaib
@muhaimintaib 3 жыл бұрын
@@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.
@mithunchopda
@mithunchopda 3 жыл бұрын
Hey! Hussain. How about collaborating on building an Http based Database? 😎
@ProgrammingLinguist
@ProgrammingLinguist 2 жыл бұрын
I think couchdb uses http as the protocol
@Technicalgogi
@Technicalgogi 6 ай бұрын
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.
@omar-senpaiii
@omar-senpaiii 2 ай бұрын
You can learn them by yourself. Hussein himself has courses for both db & os fundamentals.
@sachinghait3723
@sachinghait3723 3 жыл бұрын
@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
@kayeshparvez
@kayeshparvez 3 жыл бұрын
why are we calling pub-sub instead of queue ?
@ProJS-wj4xh
@ProJS-wj4xh 3 жыл бұрын
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..
@ProJS-wj4xh
@ProJS-wj4xh 3 жыл бұрын
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
@ProJS-wj4xh
@ProJS-wj4xh 3 жыл бұрын
it called web workers..
@cj8tacos123
@cj8tacos123 3 жыл бұрын
i was just watching the old redis video lol
@luisribeiro5639
@luisribeiro5639 8 ай бұрын
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.
@Luxcium
@Luxcium 3 жыл бұрын
What about streams ?
@mohamedhabas7391
@mohamedhabas7391 3 жыл бұрын
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
@Luxcium
@Luxcium 3 жыл бұрын
@@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
@menzeus4293
@menzeus4293 3 жыл бұрын
you babble too much of unnecessary things and diverted from the topic so many times
@izureki
@izureki Жыл бұрын
MongoDB Internal Architecture
43:25
Hussein Nasser
Рет қаралды 84 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 611 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 66 МЛН
When should you shard your database?
21:20
Hussein Nasser
Рет қаралды 77 М.
What Happens When Redis Runs Out of Memory
14:03
Redis
Рет қаралды 20 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 347 М.
What happens before the Backend gets the Request
51:26
Hussein Nasser
Рет қаралды 48 М.
Scaling Redis To 1M Ops/Sec
29:53
Redis
Рет қаралды 14 М.
How to Become a Good Backend Engineer (Fundamentals)
26:40
Hussein Nasser
Рет қаралды 515 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 18 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 178 М.