Tag

#Redis

Every article tagged Redis, in one place.

  • 11 articles
  • 13 min of reading
  • 26 Sep, 2026 last updated

Showing 11 articles

Redis 2 min read

Distributed Locks with Redis

When several app instances run the same scheduled job, you often want exactly one of them to do the work. A Redis lock is a simple way to coordinate. Acquire with SET NX PX import { randomUUID } from 'node:crypto'; async function acquireLock(name, ttlMs) { con...

21 Aug, 2026 Author 460 44
Read article
Redis 1 min read

Event Processing with Redis Streams

Redis Streams are append-only logs with consumer groups. They sit between simple Redis lists and full message brokers like Kafka: persistent, replayable and easy to run. Producing events await redis.xAdd('orders', '*', { // '*' = auto-generated id (timestamp-s...

03 Aug, 2026 Author 697 37
Read article
Redis 1 min read

Real-Time Messaging with Redis Pub/Sub

Pub/Sub lets one process publish a message to a channel and every subscribed process receive it instantly. A classic use is keeping WebSocket servers in sync. The problem it solves With three app instances behind a load balancer, user A's WebSocket might be on...

16 Jul, 2026 Author 410 73
Read article
Redis 1 min read

Storing Sessions in Redis with Express

The default in-memory session store loses every session on restart and doesn't work with more than one server. Redis is the standard fix: fast, shared and with built-in expiry. Setup npm install express-session connect-redis redis import express from 'express'...

05 May, 2026 Author 581 87
Read article
REST & GraphQL APIs 1 min read

Rate Limiting APIs: Algorithms and Headers

Rate limits protect your API from abuse, runaway scripts and accidental traffic spikes, and keep things fair between customers. Common algorithms Fixed window - count requests per calendar minute. Simple, but allows bursts at window edges (100 at 12:00:59 and...

24 Apr, 2026 Author 1.13K 32
Read article