<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rate Limiting on Ikwuka Okoye</title><link>https://ikwukao.dev/tags/rate-limiting/</link><description>Recent content in Rate Limiting on Ikwuka Okoye</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 10 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ikwukao.dev/tags/rate-limiting/index.xml" rel="self" type="application/rss+xml"/><item><title>Building Distributed Rate Limiting with Redis and Lua</title><link>https://ikwukao.dev/journal/redis-rate-limiting-with-lua/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/redis-rate-limiting-with-lua/</guid><description>&lt;h2 id="building-distributed-rate-limiting-with-redis-and-lua"&gt;Building Distributed Rate Limiting with Redis and Lua&lt;/h2&gt;
&lt;p&gt;Rate limiting sounds simple until an application runs on more than one machine.&lt;/p&gt;
&lt;p&gt;A single process can keep a counter in memory.&lt;/p&gt;
&lt;p&gt;A distributed gateway cannot rely on local state alone.&lt;/p&gt;
&lt;p&gt;While building Flux-Gateway, I used Redis and Lua scripts to explore how traffic control can remain atomic when multiple gateway instances are operating simultaneously.&lt;/p&gt;
&lt;h2 id="why-local-rate-limiting-is-not-enough"&gt;Why Local Rate Limiting Is Not Enough&lt;/h2&gt;
&lt;p&gt;Imagine two gateway instances:&lt;/p&gt;</description></item></channel></rss>