Inflearn English brand logo
Inflearn English brand logo

How to use Redis effectively, based on my experience working at a large company [Practice]

In this course, rather than covering the theory directly, you will learn how to use Redis effectively in your code through hands-on practice.

(4.1) 9 reviews

239 students

Redis
redisinsights
cache
Spring

This course is prepared for Basic Learners.

What you will learn!

  • How to write Redis source code using Spring

  • The most basic Set in Redis

  • Handling ranking data using Redis

  • Implementing a caching strategy using Redis

I got a request to introduce caching and proceed with unit development..! 🤔

When you need to introduce caching for these feature development requests, how do you introduce it? And what tools do you use? When these new requirements come in, you should consider the following items.


[1] 🤔 Which caching tool should I introduce??

[2] 🤔 There is something called a caching strategy.. What strategy should I use??

[3] 🤔 Do you have enough time?? I need time due to the Learning Curves.


Before introducing a system for such a new function, you should have a basic understanding of how the system works and how to utilize it. Only then can you use it properly and there will be no major difficulties in improving or maintaining the code in the future. In this lecture , assuming that you are introducing caching, you will learn about Redis , a representative caching tool , in great detail.

Redis.. Do I really need to know it?? 🤔

Yes, you absolutely must learn it!!

For those of you who have experience working on servers, a database is essential, but there is absolutely no case where redis is not used.

Introducing a cache using Redis is an essential element in platform development.

  • There are cases where Redis is not used and other caching tools are introduced depending on the situation. However, caching tools are used by default, and the most commonly used one is Redis .


Course Features 😉

1⃣ Configuring API using Spring , Spring Boot , and Java

2⃣ redis management using redisinsights

3⃣ How to operate Slave and Master Node

4⃣ How to use redis for various types

5⃣ How to use various redis services using Mutex Key and Script

What you will learn 😉

Handling the simplest collection using Redis

You can learn how to use the most frequently used Collections while using Redis and how to use functions in a general way through function abstraction.

Data implementation for actual functions using Sorted Set, etc.

You can learn how to implement actual functions by utilizing Collections that can be used to implement specific functions.

The most basic Caching Strategy and PER Strategy for Cache Hits

There is no right answer for caching strategy. Instead, there is a best option. You will learn the most basic strategy and the strategy that utilizes algorithms.

Ensuring Atomicity Using Lua Script

Sending multiple commands through Redis in one function is not suitable for ensuring Atmosphere. You will send queries that ensure Atmosphere through Script.

Practical code utilizing Distributed Lock

In real practice, we operate multiple instances. In this situation, it is not correct for the client to control the Mutex.

You will learn how to control locks between multiple instances using Redis.

Practical example 😉

How to set up and operate Master and Slave Redis Nodes directly

I/O optimization using Redis Pipeline

Atmosphere Data Processing Using Redis Script

A great lecture to watch together 😉

Things to note before taking the class

Practice environment

  • The lecture was filmed on MacOs M1.

  • java 17 2021-09-14 LTS version was used.

  • We used VsCode , which everyone is familiar with, as our IDE.

Recommended for
these people!

Who is this course right for?

  • For those of you who are wondering why and how to use Redis

  • For those who dream of becoming a backend developer

  • For those who are curious about the methods used by practitioners rather than the methods known to everyone

Hello
This is jhong

1,162

Students

67

Reviews

50

Answers

4.4

Rating

8

Courses

자기 소개

집에서 빈둥대다 개발에 흥미를 느껴 개발 공부를 시작하였고 현재는 판교에서 플랫폼 서버 개발을 담당하여 진행하고 있습니다.

 

제가 공부를 했던 방법과 실무에서 접하실 수 있는 여러가지 문제점들과 해결책을 여러분들에게 제공하고 싶어 지식공유자 활동을 이어나가고 있습니다.

 

강의는 오로지 저만의 지식을 통해 만들어지지 않습니다. 모든 강의는 함께하시는 분들이 계십니다.

  • 카카오에서 서버 개발하고 계시는 초이

  • 토스에서 개발하고 계시는 서버 개발자

  • 유니콘 스타트업에서 개발도 하고, DB도 관리하시는 능력자

 

지식공유자 경력

[前] 샌드박스 블록체인 개발자

[前] 넥슨 자회사 백엔드 개발자

[] 판교에서 고여가는 서버 개발자

More

Curriculum

All

25 lectures ∙ (2hr 45min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

9 reviews

4.1

9 reviews

  • gohans님의 프로필 이미지
    gohans

    Reviews 12

    Average Rating 4.9

    5

    60% enrolled

    Redis를 코드상에서 이렇게 자세하게 파고든 강의는 처음이라고 생각합니다. 어느정도 익숙한 Spring, Java코드를 활용하여 제가 몰랐던 캐싱 정략과 그에 따른 이점과 단점을 말로만 하는것이 아니라 실제로 구현하는 모습이 인상깊었습니다. 개인적으로는 되게 유익했다고 생각합니다. 그럴싸하게 어려운 용어로 포장한 것이 아니라 좀 더 친숙하고 최대한 쉽게 알려주려고 노력하는 모습이 느껴지기도 한 강의였습니다. 좋은 강의 감사합니다 강사님.

    • Hong
      Instructor

      안녕하세요 이론적인 부분에 대해서 한번 다루어보았는데, 실제 코드를 작성하는 방법에 대해서도 알려드리고 싶었습니다. 좋은 평 남겨주셔서 감사합니다.

  • devHand님의 프로필 이미지
    devHand

    Reviews 4

    Average Rating 5.0

    5

    60% enrolled

    코드는 되게 간단하고 처음하는 사람이 보기 좋은 강의라고 생각을 하고 더 중요한 부분은 강사님이 말씀해 주시는 다양한 사용법이라고 생각합니다. 듣지않고 코드만 본다면, 만족하지 못하는 분들도 있을꺼같아요.

    • Hong
      Instructor

      Redis를 다루는 코드는 그렇게 어려운 부분이 없습니다. 되게 한정적으로 사용하기 떄문이고 사실상 반복적인 로직이 많이 적용이 되기 떄문입니다. 문제는 Redis를 어떻게 사용하냐고 굉장히 중요합니다. 싱글스레드라는 성질을 알고 다양한 형태를 알고 구현 할 수 있다면 실제 실무에서도 많은 도움이 된다고 생각을 합니다. 좋은 평 남겨주셔서 감사합니다.

  • Kkyle님의 프로필 이미지
    Kkyle

    Reviews 6

    Average Rating 5.0

    5

    60% enrolled

    초심자도 듣기 좋은 강의이고 반복적인 코드일수도 있지만, 실제 하나하나 작성해주시면서 함께 강의를 구성해나가는 좋은 강의라고 생각합니다. 이렇게 Redis를 직접 운영하고 노드마다의 Ping 처리하는 강의는 보지 못했고 처음보는 개념이라서 굉장히 유익하였습니다. 해당 강의에서는 Spring을 사용하였지만, 사실상 개념적인 부분만 학습해도 매우 좋은 강의라고 평가 할 수 있을꺼같습니다. - 그래서 저는 실제로 제가 사용하는 언어로 따라하며 직접 구현하였습니다. 좋은 강의 공유해주셔서 감사합니다!

    • Hong
      Instructor

      좋은 평 남겨주셔서 감사합니다. Redis는 정말 실무에서 많이 사용되는 툴 입니다. 그래서 자세히 알고 다양한 사용 방법에 대해서 숙지하시면 많은 도움이 되실꺼에요. 사실 제가 알려드리는 내용만 모두 숙지하셔도 앞으로 Redis를 작업하는데에 있어서 어려운 부분이나 모르시는 부분은 없을꺼라고 생각합니다. 실제로 제가 사용하고 있는 방식을 기반으로 강의가 촬영이 되기도 하였고요 앞으로 좋은 개발과 재미있는 개발 하시기를 바라겠습니다. 감사합니다 :)

  • 신동아님의 프로필 이미지
    신동아

    Reviews 10

    Average Rating 4.7

    3

    36% enrolled

    slave node를 왜 구성하는지 이런거에 대한 설명도 없어서 아쉽네요

    • Hong
      Instructor

      안녕하세요 평 남겨주셔서 감사합니다!! slave node를 구성하는 이유에 대해서 간략하게 설명을 남겼다고 생각을 하였는데, 조금 부족한 부분이 있었나 보네요. Slave Node를 사용해야 하는 이유는, 기존 메인 노드가 사용이 불가능하는 경우에 대해서 대체용으로써 사용이 됩니다. 이러한 구조를 고가용성이라고 부르기도 하고요 쉽게 말해서 메인 노드에 대한 대체품이라고 생각해주시면 될 꺼 같습니다. 평 남겨주셔서 감사합니다!

  • 복숭아요거트님의 프로필 이미지
    복숭아요거트

    Reviews 4

    Average Rating 4.0

    3

    32% enrolled

    jhong's other courses

    Check out other courses by the instructor!

    Similar courses

    Explore other courses in the same field!

    $29.70