Why I stopped using Redis for rate limiting (opens in new tab)

Discussed on DEV

The Problem Every Node.js rate limiting solution I tried had the same issue — Redis in the hot path. Request comes in → middleware → network call to Redis → wait → process. That's 5-20ms added to every single request. At scale, this becomes a real problem. What I Built Pace runs a Rust native addon directly inside your Node.js process via napi-rs. No network calls. No Redis. Decisions happen in memory in under 0.001ms. How it works npm i pace-node const pace = new Pace({ mode: "active" }); ap...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help