inflearn logo

2026! A Practical Guide to Redis for Backend Developers: From Basics to Real-World Patterns

Many backend developers use Redis, but in reality, they often use it merely as a simple cache server. There are many cases where developers know the Redis data types but don't know how to apply them in practice, lack experience implementing real-world patterns like distributed locks or rate limiting, or fail to understand Redis from a backend architecture perspective. I also had the experience of pondering how to utilize Redis in a high-traffic environment while developing actual services. This is because knowing simple commands is entirely different from solving service problems with Redis. This course starts with the basic concepts and data structures of Redis and progresses through learning by implementing core patterns used in actual backend services step-by-step. In particular, you will learn how to solve the following practical problems using Redis: Caching (Cache-Aside) strategies to reduce server load, Distributed Sessions (Session Store) to share login states, Distributed Locks to solve concurrency issues, Rate Limiting to prevent API overload, and Real-time Ranking Systems (Leaderboards) for large-scale users. All hands-on exercises are conducted in a real API server environment based on Python FastAPI. Rather than just learning simple CLI commands, you will understand how Redis is used in backend systems by implementing it yourself. Through this course, you will be able to utilize Redis not just as a simple cache, but as a core tool for designing backend architecture.

(5.0) 27 reviews

424 learners

Level Beginner

Course period Unlimited

Architecture
Architecture
Redis
Redis
FastAPI
FastAPI
Architecture
Architecture
Redis
Redis
FastAPI
FastAPI

Reviews from Early Learners

5.0

5.0

byyyk

98% enrolled

I could tell that you put a great deal of care into making the course easy to follow in many ways—not only through the content, structure, buildup, and materials, but also throughout the explanations. Seeing you consistently add bonus tracks even after releasing the course made me feel that your passion and sense of responsibility toward the course are truly remarkable. I’ve often been disappointed by other superficial courses on Inflearn, but I really enjoyed this one because I could feel the instructor’s genuine dedication~~!

5.0

SPRING

100% enrolled

Personally, I think this is one of the best lectures. It's amazing how much core content and insight you provided in just a 12-hour course. Regarding the 4 defense strategies for Cache Stampede, currently, only Locking is covered. Will PER, Singleflight, and SWR be included later? Thank you for the great lecture.

5.0

miya

35% enrolled

Even the lecture materials are very compact. The delivery is excellent, and the course is worth every penny. If you release other courses in the future, I would love to take them.

What you will gain after the course

  • Understand the necessity, basic concepts, and usage of Redis.

  • I can understand Redis data structures and design them to fit the service requirements.

  • I can directly implement Redis practical patterns (caching, distributed locks, rate limiting, etc.).

  • You can understand Redis operation and performance issues and apply them in a practical environment.

  • You can build backend features using Redis in a FastAPI-based API server.


2026 Redis

Basic Utilization + Advanced Features + Latest Trends

And even hands-on practice with backend real-world application patterns!

Master Redis!

The true power of Redis lies beyond caching, in its application as a core engine of backend architecture.

In this course, based on a solid foundation of Redis basics, you will learn to directly implement complex and critical real-world patterns such as distributed locks, session management, and real-time ranking systems using FastAPI. Beyond simply memorizing commands, you will master how to utilize Redis to dramatically improve the performance and stability of actual services.


Learn basic Redis concepts, core data structures, and commands

(100% testable in Windows and Mac local environments)

Understanding Advanced Redis Features and Latest Trends

(Based on Redis 8.6.1, Pub/Sub, Streams, Redis Stack, Lua Scripting, Redis Functions)

Design and Implementation Practice of Backend Practical Application Patterns

(Implementing and practicing real-world backend usage patterns by integrating FastAPI and Redis)

Basic + Advanced + Practical implementation, along with Redis operation and troubleshooting tips, and even a bonus track on Redis-related architecture design for high-traffic services! You will learn various core theories and real-world cases to properly utilize Redis in practice.

By the end of this course, you will


You will be able to perfectly understand and utilize everything from the basic concepts of Redis to practical patterns.

  • Beyond simple caching, you will gain an understanding of Redis's various data structures and the ability to design and apply the optimal data types to meet actual service requirements. You will move past using it merely as a Key-Value store and learn to utilize Redis as a core tool in your architecture.

You can directly implement core backend practical patterns.

  • You will gain hands-on experience implementing complex and critical backend solutions using Redis, such as caching (Cache-Aside), distributed sessions, distributed locks, rate limiting, and real-time ranking systems. Beyond just learning theory, you will develop problem-solving skills by writing functional code for actual FastAPI-based API servers.

Gain insights into resolving performance bottlenecks in high-traffic environments.

  • You will gain a clear understanding of the speed advantages of memory-based data storage over Disk I/O bottlenecks. Based on this, you will be able to establish strategies to effectively introduce and utilize Redis so that services can operate stably without performance degradation even as traffic increases.

You will acquire practical Redis operation skills and knowledge of the latest trends.

  • You will learn and practice the core aspects of Redis operation, such as efficient key naming strategies, memory management, and persistence settings. Additionally, you will grasp the latest Redis technology trends, including Pub/Sub, Stream, and Redis Stack, to prepare yourself to keep pace with the rapidly changing technological environment.


✔️

Redis, why do we need it? The secret to speed and performance

Redis, the Core of Backend Architecture
An Essential Guide for Performance Improvement

This course covers the basic concepts and various data structures of Redis in depth, and implements practical patterns to solve traffic and performance issues that occur in real-world backend services. You will systematically learn how to use Redis as a core tool for architectural design, going beyond its use as a simple cache.

Practical Redis Patterns with FastAPI

Based on real-world service development experience, you will learn how to solve various problems encountered in backend development—such as caching, distributed locks, rate limiting, and real-time ranking systems using Redis—by directly implementing them in a Python FastAPI-based API server environment.

Practical Redis implementation code

All practice code covered in the lecture is conducted in a Python FastAPI environment. Beyond just Redis commands, we provide practical code on how to integrate and utilize Redis within an actual backend system to maximize learning effectiveness.


📚

Redis, a core tool for designing backend architecture—
master it by implementing it yourself!

Section 1

The Necessity of Learning Redis: Understanding the Speed Difference

We answer the fundamental question of why you should learn Redis. We analyze the speed difference between disk and memory and explain why these performance benefits make Redis essential in modern backend architecture. We highlight the role of Redis in improving data processing speeds.


Section 2

Redis Basic Concepts and Environment Setup

This section introduces the core concepts, data structures, and features of Redis. It covers the pros and cons of the single-threaded model and data persistence options. Additionally, it provides hands-on practice for installing Redis on Windows and Mac environments, as well as setting up the environment using Docker Desktop.


Section 3

Redis Core Data Types and Command Utilization

We will study Redis's primary data types—String, List, Set, Hash, and Sorted Set—in depth. You will learn the characteristics of each data type along with the essential commands for efficiently storing and retrieving data. We will also cover strategies for selecting the optimal data type to meet specific service requirements.


Section 4

Advanced Redis Features and Latest Trends

Explore advanced features such as Pub/Sub, Stream, and Redis Stack (JSON, Full-Text Search). It covers the latest changes in Redis 7.x and 8.0, as well as how to implement complex business logic using transactions, Lua scripting, and Redis Functions.


Section 5

Implementing Practical Redis Patterns Based on FastAPI

We will implement patterns to solve real-world backend service problems by integrating Python FastAPI with Redis. You will learn practical ways to use Redis through various scenarios, such as caching, distributed locking, rate limiting, and real-time ranking systems.


Section 6

Redis Operational Strategies and Disaster Recovery

Learn efficient key naming strategies, memory management techniques, and data eviction policies. Understand the principles of RDB and AOF persistence options and practice backup and recovery procedures. Learn system diagnosis and troubleshooting methods using monitoring tools.


Section 7

Bonus Track for Designing High-Capacity Services

We will cover in-depth strategies for defending against cache invalidation and cache stampede phenomena encountered in high-traffic environments. You will specifically learn cache stampede defense techniques using locking mechanisms to strengthen your ability to operate stable services.


We can solve the concerns of people like this!


📌

Backend developers learning Redis for the first time

Developers who are new to the basic concepts and data structures of Redis,
but want to understand them quickly with a focus on practical application

📌

Backend developers who are only using simple caching functions

Developers who are using Redis but only as a simple cache server,
and want to learn more in-depth practical application methods.

📌

FastAPI-based backend developer

Developers who are developing backends using FastAPI and
want to directly implement features such as caching, distributed locking, and rate limiting by integrating Redis




Notes before taking the course


Hands-on Environment

  • Operating System: Both Windows and macOS are supported.

  • Essential Tools: Installation of Docker Desktop is recommended.

  • PC Specifications: A PC with a basic development environment is sufficient.

Prerequisites and Important Notes

  • Since the course covers the basic concepts of Redis from the beginning, no prior knowledge is required.

  • Of course, it is helpful to have a prior understanding of basic Redis concepts (such as caching).

  • The implementation of backend practical patterns is done with FastAPI, but it is at a level that can be understood if you have basic knowledge of backend development in other languages.

  • If you have experience with FastAPI, you will be able to learn even more easily.


Learning Materials

  • We will utilize all the hands-on code materials provided in the lecture.

  • You can achieve in-depth learning by referring to the official Redis documentation.



Recommended for
these people

Who is this course right for?

  • Developers who are new to Redis but want to understand it quickly with a focus on practical application.

  • A backend developer who uses Redis but only as a simple cache.

  • Developers who want to utilize Redis in a FastAPI-based backend

  • A developer who wants to solve backend issues that occur in high-traffic situations

Need to know before starting?

  • Basic understanding of web backend development

  • Redis covers basic concepts in the course, so no prior knowledge is required.

Hello
This is codingpe

Inflearn Verified

Career Verified

2,290

Learners

85

Reviews

24

Answers

5.0

Rating

4

Courses

Coding Professional Engineer

Systematic theory + Over 20 years of practical experience + Top-tier license holder


20+ years of practical experience

  • Development Leader/Architect at major gaming companies, large telecommunications subsidiaries, and startups.

  • Development of various applications including web, Windows, games, automation, and data analysis

  • Managing development teams (main), database teams, infrastructure teams, etc.

  • Official Internal Instructor


Equipped with systematic theory


Holds Top-Tier Licenses

  • Professional Engineer (Information Management) / Senior Information Systems Auditor

  • ISMS-P Auditor / SW Security Vulnerability Diagnostician

  • Data Quality Certification Auditor (DQC-V)

     

  • Microsoft MVP (C#) / MCAD

     

  • PMP / OCP9i

 


I will grow together with the developers at Inflearn.

Cheering on all the developers who are studying! You can do it!^^

More

Curriculum

All

50 lectures ∙ (13hr 44min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

27 reviews

5.0

27 reviews

  • s1121238291님의 프로필 이미지
    s1121238291

    Reviews 94

    Average Rating 4.9

    5

    100% enrolled

    Personally, I think this is one of the best lectures. It's amazing how much core content and insight you provided in just a 12-hour course. Regarding the 4 defense strategies for Cache Stampede, currently, only Locking is covered. Will PER, Singleflight, and SWR be included later? Thank you for the great lecture.

    • codingpe
      Instructor

      Hello. Thank you very much for your high praise of my lecture. 😊 The Cache Stampede is a bonus track, but I've been a bit busy making a living, so it has been pushed down the priority list. I will take strength from your review and do my best to speed things up.

  • firewar406745님의 프로필 이미지
    firewar406745

    Reviews 1

    Average Rating 5.0

    5

    30% enrolled

    The explanations and hands-on examples are great.

    • codingpe
      Instructor

      Hello. Thank you for evaluating the lecture. 😊

  • fabxoekor9492님의 프로필 이미지
    fabxoekor9492

    Reviews 6

    Average Rating 5.0

    5

    31% enrolled

    Seeing how Redis directly leads to the implementation of features commonly used in web services has made me really want to learn more about it.

    • codingpe
      Instructor

      Hello. If you know Redis well, it’s a very useful tool with countless applications^^. Thank you for reviewing the course. 😊

  • ghwnd64487587님의 프로필 이미지
    ghwnd64487587

    Reviews 15

    Average Rating 5.0

    5

    31% enrolled

    The content is concise, easy to understand, faithful to the fundamentals, and appropriately incorporates practical know-how. Some instructors don’t prepare their materials thoughtfully and convey the content only through lectures. No matter how well they explain things, I tend to avoid that style because it makes learning burdensome when you can’t preview the material. This course is not like that, so I’m satisfied.

    • codingpe
      Instructor

      Hello. Thank you for the great review. 😊 I put quite a bit of effort into the lecture notes, so I’m glad they were helpful. I hope you complete the entire course and become a Redis expert.

  • byyyyyk님의 프로필 이미지
    byyyyyk

    Reviews 3

    Average Rating 2.3

    Edited

    5

    98% enrolled

    I could tell that you put a great deal of care into making the course easy to follow in many ways—not only through the content, structure, buildup, and materials, but also throughout the explanations. Seeing you consistently add bonus tracks even after releasing the course made me feel that your passion and sense of responsibility toward the course are truly remarkable. I’ve often been disappointed by other superficial courses on Inflearn, but I really enjoyed this one because I could feel the instructor’s genuine dedication~~!

    • codingpe
      Instructor

      Hello. What an encouraging course review. 😊 Thank you so much for viewing it favorably and leaving such kind feedback. I hope you complete the entire course and find it helpful in your work. I’ll also continue to do my best and see you again with great courses. Thank you.

codingpe's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

25% off for new members

$48.20

25%

$68.20