---
title: "Comment by haleo on \"Designing a High-Throughput Distributed Rate Limiter: From Token Bucket to Redis Lua Scripts\" | Hashnode"
description: "A production rate limiter also needs an explicit failure policy. When Redis is slow or unavailable, should the service fail open, fail closed, or temporarily us"
url: "https://hashnode.com/posts/designing-a-high-throughput-distributed-rate-limiter-from-token-bucket-to-redis-lua-scripts/6a6819f5eb4dce2b3ac4f4a7/comment/6a992d2101a20b26624608b4"
---

[Discussion](https://hashnode.com/posts/designing-a-high-throughput-distributed-rate-limiter-from-token-bucket-to-redis-lua-scripts/6a6819f5eb4dce2b3ac4f4a7)

Comment [Designing a High-Throughput Distributed Rate Limiter: From Token Bucket to Redis Lua Scripts](https://hashnode.com/posts/designing-a-high-throughput-distributed-rate-limiter-from-token-bucket-to-redis-lua-scripts/6a6819f5eb4dce2b3ac4f4a7)

[haleo](https://hashnode.com/@haleo)

[Sep 3](https://hashnode.com/posts/designing-a-high-throughput-distributed-rate-limiter-from-token-bucket-to-redis-lua-scripts/6a6819f5eb4dce2b3ac4f4a7/comment/6a992d2101a20b26624608b4)

A production rate limiter also needs an explicit failure policy. When Redis is slow or unavailable, should the service fail open, fail closed, or temporarily use a local fallback? The correct answer depends on whether availability, cost protection, or abuse prevention is the higher priority.
