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

Комментарии • 53

  • @MohsenKarbassi
    @MohsenKarbassi 2 года назад +63

    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...).

  • @raghavbuz
    @raghavbuz 2 года назад +1

    Very good. I was eagerly waiting for this one (related to Redis). Thank you again.

  • @BLACKGUNCLAN
    @BLACKGUNCLAN Год назад

    Обожаю твои видео! Самые полные и подробные. Информация доносится легко! Спасибо, что есть ты и твои уроки!

  • @peadenl
    @peadenl Год назад +1

    You have an excellent teaching style. Always learn a lot and pick up so much perspective from your work.

  • @nick11927
    @nick11927 2 года назад +2

    Thanks les. You’ve been on a role lately. Looking forward to watching this later

  • @Dmitry-Moiseenko
    @Dmitry-Moiseenko 2 года назад

    Les, thank you very much for this great video! Very well explained some key features and use cases of Redis as a DB.

  • @creativeedge2974
    @creativeedge2974 2 года назад +1

    Thanks Man. Really Appreciate Your Efforts & Hard Work.

  • @matthewholmes2008
    @matthewholmes2008 2 года назад +1

    1:20:42 "And hopefully.... well no we shouldn't be hoping. We should be knowing what we're doing" 😂 Lost it.

  • @alexandrea.g.5796
    @alexandrea.g.5796 2 года назад +1

    Always with very top content and greetings from Brazil 🇧🇷

  • @onedev7316
    @onedev7316 2 года назад +1

    Excellent Les and thank you.

  • @MechanicalMooCow
    @MechanicalMooCow 2 года назад

    I've been using the StackExchange Redis package and am in love with it.

  • @2005bgva
    @2005bgva 2 года назад +11

    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.

  • @m01s3s93
    @m01s3s93 2 года назад

    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

  • @ahmadjehangir1356
    @ahmadjehangir1356 2 года назад +1

    Sir, I have learnt a lot from you. You are a great teacher. Forgive for my grammatical mistakes if any.
    Thank you ❤️

  • @isaduvan9454
    @isaduvan9454 2 года назад

    I can find on your youtube channel whatever I search about .net :) Thank you so much.

  • @viorelvior5686
    @viorelvior5686 2 года назад +1

    Thank you a lot! You're amazing!

  • @Vinaykumar-mysore
    @Vinaykumar-mysore 2 года назад

    This was awesome. Thank you very much

  • @emhyrvemrais7574
    @emhyrvemrais7574 Год назад

    I love your turtorials. I am gretfull thath you share your knowledge with youtube.

  • @yaroslavparshutin4789
    @yaroslavparshutin4789 2 года назад

    Thanks for great video!

  • @abdelrahmanismail5898
    @abdelrahmanismail5898 2 года назад +1

    OMG ! This is amazing ! two loaded videos in two consecutive months Thanks for these great ones

  • @mmuekk
    @mmuekk 2 года назад

    Hi Les, thanks for the great video. You just gain a new subscriber

  • @dung291196
    @dung291196 Год назад

    Thank you kindly for this video! :)

  • @CrusaderGeneral
    @CrusaderGeneral 2 года назад

    Fabulous idea.

  • @tonguyenducmanh
    @tonguyenducmanh 10 месяцев назад

    thank you for created this video

  • @HedayatKamalian
    @HedayatKamalian Год назад

    That was great video , beside main subject always there are some new tips that are very useful and makes it attractive for me

  • @venkatesh5802
    @venkatesh5802 2 года назад

    Very Nice :) Thank you.

  • @WhiteLotusZuko
    @WhiteLotusZuko 2 года назад

    Thank you so much for this video

  • @nsedwards
    @nsedwards 2 года назад

    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?

  • @rnalamati
    @rnalamati 2 года назад

    Hi Les
    Thanks for wonderful video like as usual

  • @Ryan-sw8rx
    @Ryan-sw8rx 2 года назад

    This guy’s awesome!

  • @xosece
    @xosece 2 года назад

    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.

  • @ashseth7885
    @ashseth7885 2 года назад

    Thanks 🙏

  • @xikote100
    @xikote100 Год назад

    thanks master!!!!!!

  • @saqibhussain9795
    @saqibhussain9795 Год назад

    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.

  • @yogeshkajala4170
    @yogeshkajala4170 Год назад

    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 😊

  • @AliMustafa-xp8ih
    @AliMustafa-xp8ih 7 месяцев назад

    thank you

  • @arunkumarsingh8754
    @arunkumarsingh8754 2 года назад

    Love from India ❤️

  • @fabrizziocht
    @fabrizziocht 2 года назад

    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.

  • @maheshshekatkar4268
    @maheshshekatkar4268 2 года назад

    Can anyone tell me the asynchronous function in the Redis library to get all keys ?

  • @csilipo
    @csilipo Год назад

    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).

  • @sachithmw
    @sachithmw 2 года назад +2

    Another great one. Thank you very much. Please do a server sent events session with .Net core. Next time.

  • @surajpradhan4532
    @surajpradhan4532 2 года назад

    Awesome . Any further plan on .Net 6 minimal api course

  • @abhishekborikar4958
    @abhishekborikar4958 2 года назад

    Can you please make video which could be the good laptop for development in various budget?

  • @kmakulik
    @kmakulik 2 года назад

    Great video! Thanks!!!
    Why you wont used .editorconfig file? It is very convenient way to auto format yaml files. 👍

  • @sajadzarenejad5652
    @sajadzarenejad5652 Год назад

    ❤❤❤❤❤❤❤❤

  • @kawthooleidevelopers
    @kawthooleidevelopers Год назад

    Is it more expensive to use Redis?

  • @theincredibleillmo9385
    @theincredibleillmo9385 2 года назад

    Hi Bro, do you have any udemy course?

  • @sinafallahpour2626
    @sinafallahpour2626 2 года назад

    ommmm

  • @HaoNguyen-km9xj
    @HaoNguyen-km9xj 2 года назад +1

    I am really want to use Redis in real applications, but I afraid that I don't know how to deploy it

    • @MechanicalMooCow
      @MechanicalMooCow 2 года назад

      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

  • @osr2004snd
    @osr2004snd 2 года назад

    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.

  • @HakunaMatata225
    @HakunaMatata225 Год назад

    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!!

  • @bramburn
    @bramburn Год назад

    You need shorter videos lol
    They look good but 2 hours throws me off