Redis
A very fast in-memory data store used for shared caches, rate-limit counters, session data and pub/sub messaging.
In more detail
Reading from Redis takes a millisecond or two over the network, far faster than most database queries but slower than a process’s own memory. Because every instance can reach it, it is the natural shared second tier behind local caches.
Related terms
- key-value store — A database that stores each item under a unique key and fetches it by that key, very quickly and at large scale.
- shared cache — A cache service, such as Redis, that all application servers read from and write to.
- SET — The Redis command that stores a value under a key, optionally with an expiry or only if the key does not exist.
- DEL — The Redis command that deletes one or more keys.
- Data Cache — The second Next.js caching tier: a server-side store of fetch results that persists across requests, users and deployments.
- HTTP cache — A store that keeps HTTP responses and reuses them for later requests, following the rules the server sends in Cache-Control.
- two-tier cache — A cache with a small, very fast local layer inside each server process (L1) in front of a larger shared layer such as Redis (L2).
- publish-subscribe — A messaging pattern where senders publish messages to a named channel and every subscriber listening on that channel receives a copy.
- cache — A store of earlier answers kept close to where they are needed so they can be reused instead of fetched or computed again.
- rate limiting — Capping how many requests a client may make in a period of time, and rejecting or delaying the rest.
Taught in
- One Database Doing Five Jobs — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Morning An Availability Zone Went Dark — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Database Performance: Caches, Proxies And Capacity Units — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Long-Stem Clinic: The Phrase That Decides — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Argo CD: Components, Applications And Projects — Certified Argo Project Associate (CAPA) Exam Prep
- EventSource, EventBus, Sensor And Trigger — Certified Argo Project Associate (CAPA) Exam Prep
- JWT Verification: Asymmetric Keys & Refresh Rotation — Production Full-Stack Engineering
- Bidirectional WebSockets: Reconnection & Heartbeats — Production Full-Stack Engineering
- Distributed Cache Invalidation: Redis & Tagged Purging — Production Full-Stack Engineering
- Traffic Management: Sliding Window Rate Limiting — Production Full-Stack Engineering
- Data Cache: Cross-Request Persistence & Fetch Tags — Next.js 15 & Modern App Router Architecture
- Caching Strategies And Topology — Scalable System Design & Distributed Architecture