Redis as a Primary DB using a .NET 6 API

Опубликовано: 30 Октябрь 2024
на канале: Les Jackson
69,774
2k

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: https://github.com/binarythistle/Redi...
✏️ Blog: Redis as a Primary DB: https://dotnetplaybook.com/redis-as-a...
🤩 Patreon Site (Exclusive Member Benefits!):   / binarythistle  
🎓 My other courses: https://dotnetplaybook.learnworlds.com
📕 My Book: https://link.springer.com/book/10.100...
🌲 Linktree: https://linktr.ee/binarythistle
🔗 Redis Persistence: https://redis.io/topics/persistence
🔗 Redis data types: https://redis.io/topics/data-types-intro
🔗 Nullable Reference Types: https://docs.microsoft.com/en-us/dotn...
🔗 Using SCAN: https://redis.io/commands/scan
🔗 Stack Exchange Key Scan: https://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