[推薦] Top 5 Redis Usecases
Source
https://www.youtube.com/watch?v=a4yX7RUgTxI 6:27
Summary
- session data: shared single storage to keep user’s session
- replication: sentinel, cluster for session data
- distributed lock: as shared lock, allows caller to do one thing only specific key exists, e.g: transaction, stock management
- rate limiter: use session id as key, set counter and max count, expire time(window size)
- rank/leader board: sorted set(zset)
發佈時間
2023-6-25