SpinTheMic
Pro

Interview practice question

Reacting when keys expire

Backend Engineering · NoSQL and Redis · Intermediate

You want to run some logic when a Redis key expires, like ending a user's reserved cart hold. Is relying on keyspace notifications a good idea?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Keyspace notifications are fire-and-forget.
  • Expiry events may be delayed.
  • Missed if subscriber offline.
  • Use sorted set of deadlines + poller.
  • Or durable scheduler/queue.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics