Redis Data with Spring Boot - Distributed Lock Implementation With Redis

preview_player
Показать описание
Redis is an open source, in-memory data structure store, used as a database, cache, and message broker. In this video we take a look on how we can use it to build a distributed locker.
We take a block of code and lock it for the duration of its execution (or until the lock expires).

For details on how to setup redis take a look at this video:

Рекомендации по теме
Комментарии
Автор

How can we call the runTask method inside PlayGroundService for our POST call endpoint. i want to reduce the number of DB calls and lock the functionality of POST endpoint.

SurendraAccenture
Автор

Quick question: Is there a way, how we can identify the instance that has acquired a specific lock from redis ? There can be consumers across different instances that may have acquired these locks, so identifying the source IP/instance info can help in solving some usecases.

saitejareddy
Автор

You did not mention how RedisTemplate was autowired

abhisranjan
Автор

Hi, this is a very useful redis series, can you guide HOW TO EXPIRE ALL KEYS VALUE IN REDIS. Thank you very much.

TanNguyen-yuel
Автор

How does redis handle concurrent writes internally? Could you point me to some resource? I need to understand how redis ensures race condition does not occur when two clients tries to write to same key simultaneously.

lankesh
Автор

Hi, could you please show us the implementation of lru and lfu cache ?

kayeshparvez
Автор

This one is tough for me to understand :(

kayeshparvez