Redis as a Primary DB using a .NET 6 API
HTML-код
- Опубликовано: 27 фев 2022
- In this step by step video we ask the question whether we can use Redis (renowned for caching) as primary database. In order to answer that question we build a .NET 6 API with 3 endpoints, using Redis as the primary database. The video includes:
• An overview of Redis and its data types
• Setting up a Redis instance in Docker
• Using the redis-cli
• Step by step build of our API
Level: Beginner
🌐 Links 🌐
💾 GitHub Repository: github.com/binarythistle/Redi...
✏️ Blog: Redis as a Primary DB: dotnetplaybook.com/redis-as-a...
🤩 Patreon Site (Exclusive Member Benefits!): / binarythistle
🎓 My other courses: dotnetplaybook.learnworlds.com
📕 My Book: link.springer.com/book/10.100...
🌲 Linktree: linktr.ee/binarythistle
🔗 Redis Persistence: redis.io/topics/persistence
🔗 Redis data types: redis.io/topics/data-types-intro
🔗 Nullable Reference Types: docs.microsoft.com/en-us/dotn...
🔗 Using SCAN: redis.io/commands/scan
🔗 Stack Exchange Key Scan: stackexchange.github.io/Stack...
⏲️ Time Codes ⏲️
PART 1 - INTRODUCTION
- 0:45 Welcome
- 3:06 What we'll cover
- 5:18 What is Redis
- 9:36 Caching Overview with Examples
- 14:28 Using Redis as a Primary Database?
- 16:54 Application Architecture
- 18:39 Overview of our API End Points
PART 2 - PROJECT SET UP
- 20:52 Scaffolding Up our API
- 26:07 Using Docker to Run Redis
- 36:14 Using the Redic Command Line (redis-cli)
- 38:52 The Redis String Datatype
- 43:49 Adding Package References
- 48:11 Remove Redundant Scaffold Code
PART 3 - CODING OUR API (STRING DATA TYPE)
- 48:33 Connecting to Redis
- 53:31 Progress Review
- 55:02 Creating our Model
- 1:04:23 Creating our Repository Interface
- 1:08:14 Creating our Redis Repository Implementation
- 1:22:42 Creating our API Controller
- 1:35:07 Testing our API
PART 4 - REFACTOR OUR API
- 1:41:56 End Point Review
- 1:42:34 The SCAN Command
- 1:45:37 Demonstrating Redis persistence
- 1:47:44 Using Sets & the Set data type
- 2:03:19 Final Implementation with Hashes
- 2:10:10 Testing our implementation
- 2:12:34 Answering todays question
PART 4 - CREDITS
- 2:14:31 Patron Supporter Credits
Another great video! Watched second by second. If I may do a suggestion, please do a complete Authentication & Authorization for real production (claims, policy, two factor authentication, etc...).
Very good. I was eagerly waiting for this one (related to Redis). Thank you again.
Обожаю твои видео! Самые полные и подробные. Информация доносится легко! Спасибо, что есть ты и твои уроки!
You have an excellent teaching style. Always learn a lot and pick up so much perspective from your work.
Thanks les. You’ve been on a role lately. Looking forward to watching this later
Les, thank you very much for this great video! Very well explained some key features and use cases of Redis as a DB.
Thanks Man. Really Appreciate Your Efforts & Hard Work.
1:20:42 "And hopefully.... well no we shouldn't be hoping. We should be knowing what we're doing" 😂 Lost it.
Always with very top content and greetings from Brazil 🇧🇷
Excellent Les and thank you.
I've been using the StackExchange Redis package and am in love with it.
Hi Les thanks for this video, you are fantastic! Maybe in the future you could do videos about Azure alternatives, how to deploy a aplication in a server with Linux, continuos delivery, and how to prepare a VPS with linux to suppor a .net6 application.
Great video Less! Thanks for share your opinion about Redis how primary db with this material/project. Just now I'm using Redis in a project and this info is infinitive valuable
Sir, I have learnt a lot from you. You are a great teacher. Forgive for my grammatical mistakes if any.
Thank you ❤️
I can find on your youtube channel whatever I search about .net :) Thank you so much.
Thank you a lot! You're amazing!
This was awesome. Thank you very much
I love your turtorials. I am gretfull thath you share your knowledge with youtube.
Thanks for great video!
OMG ! This is amazing ! two loaded videos in two consecutive months Thanks for these great ones
Hi Les, thanks for the great video. You just gain a new subscriber
Thank you kindly for this video! :)
Fabulous idea.
thank you for created this video
That was great video , beside main subject always there are some new tips that are very useful and makes it attractive for me
Very Nice :) Thank you.
Thank you so much for this video
Awesome video as always Les though would have been good to have had more of a discussion around when this would be an appropriate strategy to use looking at pros/cons trade offs etc. Maybe the subject of a future video?
Hi Les
Thanks for wonderful video like as usual
This guy’s awesome!
thanks once again! This is something that I wanted to learn 'cos I heard a lot about Redis but never used it.
On a different note, I notice your VS Code dont have Bracket Pair Colorizer 1 or 2 (it was an extension, but it is now part of VS Code). I use the official Github theme (dark, lovely theme, it's like being in a Github repository while editing), but that's not the cause. Hmmm, never mind, I use VS Code Insiders and the feature doesnt seem to be in regular VS Code yet (I checked). It is sooo helpful, those brackets can be sometimes a pita, for instance when editing files like appsettings.Development.json and of course many other extensions.
Thanks 🙏
thanks master!!!!!!
Dude you are my hero, you don't even know, everytime I see a Video with your face in the thumbnail , I feel like I have found my Messiah.
Hi Tim, thanks a lot for wonderful content. I refer almost everything in some way from it for initial reference point.
I really wonder if you get more deep advanced topics (let's have meal and desert after starters)😅, May be leveraging with more industry standards 😊
thank you
Love from India ❤️
Hello, thank you for the tutorial, I have a doubt about the IConnectionMuliplexer Service, Is it ok to add as a singleton? is not any concurrency problem? What if I choose AddScoped instead? Thank you for your help.
Can anyone tell me the asynchronous function in the Redis library to get all keys ?
Hi Les, another great video. Is there any chance you could maybe do a video on your .Net Journey. About how you got into the industry, some of the challenges. I know Brad Traversy has a similar video. All the best Carlo ( ps I’ve been back to PHP).
Another great one. Thank you very much. Please do a server sent events session with .Net core. Next time.
Awesome . Any further plan on .Net 6 minimal api course
Can you please make video which could be the good laptop for development in various budget?
Great video! Thanks!!!
Why you wont used .editorconfig file? It is very convenient way to auto format yaml files. 👍
❤❤❤❤❤❤❤❤
Is it more expensive to use Redis?
Hi Bro, do you have any udemy course?
ommmm
I am really want to use Redis in real applications, but I afraid that I don't know how to deploy it
You can use the official service to deploy a redis server, free for the most part but if you want to run a project utilising it fully it's pretty cheap
Please, please, please, I find this videos so educative an important that I need to highly recommend to Les Jackson to break them in 12 to 15 mins max videos. I'm sure that way he will gain far more programmers watching them. I know is the same amount of time but is really hitting arrive here and check that you need to wait 2 hrr 20 mins to get this knowledge. Furthermore it's easier to find what you want in a 15 mins video than in a 2 hours long one. I hope Les could attend this request.
The Redis part can be summed up in 20 minutes most... I'm not sure why you are explaining what an interface is!!... tooooo long!!
You need shorter videos lol
They look good but 2 hours throws me off