Skip to content
Middle2 views

What else noteworthy from the tech stack did you use—Redis, distributed locks, or anything else?

Practice

AI answer

A question like this should be answered with specific technologies and your own experience: what problem you solved, why you chose a tool, how you handled failures, and what trade-offs you considered. For example, when discussing Redis, you can explain whether you used it for caching, session storage, counters, rate limiting, or queues; how you set TTLs and invalidated the cache; what happened when Redis was unavailable; and how you monitored memory usage.

For distributed locks, it is important to mention implementation details: acquiring the lock atomically (for example, SET key token NX PX ttl), using a unique owner token, and releasing the lock safely only when the token matches (usually with an atomic Lua script). You should also account for TTLs, process pauses, network failures, and the possibility that the lease expires while work is in progress; operations that require protection against a stale owner may need fencing tokens. Do not claim to have used a particular tool or approach if you have not.