Home / Companies / Ably / Blog / Post Details
Content Deep Dive

Redis scripts do not expire keys atomically

Blog post from Ably

Post Details
Company
Date Published
Author
Andrew Dunstall
Word Count
743
Company Posts That Month
5
Language
English
Hacker News Points
67
Post removed?
No
Summary

This post by an Ably engineer discusses the use of Redis for key-based storage in their pub/sub messaging platform and how they resolved a problem related to maintaining the integrity of related keys when using expire operations within Lua scripts. The issue was that naively expiring multiple keys in the same script did not guarantee atomicity, leading to potential inconsistencies. The solution involved using EXPIREAT to set an absolute expiry time for all related keys and reordering key expiry to ensure consistency.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 3 951 285 97 -5%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.