2026-01-28 · 6 min read
Redis rate limits for multi-platform commerce APIs
RedisAPIPerformance
Third-party commerce APIs punish noisy neighbors. A naive queue dump against Shopify or BigCommerce will 429 mid-sync and leave catalogs half-updated.
I prefer Redis token buckets per platform + shop: a Lua script that refills tokens and returns either a permit or a retry-after. Workers sleep cooperatively instead of hammering.
Inbound webhooks stay on a separate fast path — verify, persist, enqueue — so rate limits on outbound connectors never stall acknowledgement of the source platform.
Cache read-heavy catalog lookups briefly, but never cache payment or inventory mutations. Measure p95 connector latency before and after; the wins usually show up as fewer retry storms, not raw RPS.