[推薦] Top 5 Redis Usecases

Source

https://www.youtube.com/watch?v=a4yX7RUgTxI 6:27

Summary

  1. session data: shared single storage to keep user’s session
  2. replication: sentinel, cluster for session data
  3. distributed lock: as shared lock, allows caller to do one thing only specific key exists, e.g: transaction, stock management
  4. rate limiter: use session id as key, set counter and max count, expire time(window size)
  5. rank/leader board: sorted set(zset)
cmd + /