03Backend
Distributed Token & Caching Service
A horizontally scalable Node JS token service backed by Redis, designed to reduce repeated calls to downstream identity systems and improve authentication throughput under high request volume.
- Node JS
- Redis
- Distributed systems
Stateless · scales out
- 03 Redis · cache lookup
- 04 Identity / Auth Provider · cache miss
- 05 Token Response · cache hit
- 03 Redis · store + TTL
- 05 Token Response · new token
Overview
What was built
Designed and implemented a distributed token service using Node JS and Redis to centralize token generation, caching, renewal, and invalidation. Requests first check the shared cache and reuse valid tokens when available; cache misses trigger a controlled downstream authentication flow before storing the result with an appropriate TTL. The stateless service can run across multiple instances while Redis provides a shared token state, reducing redundant authentication traffic and improving response time and resilience.
Technology
- Node JS
- Redis
- Distributed systems
- Performance profiling
- REST APIs
Next project
Self-Service Identity Portal
Full-stackPassword reset and account unlock, taken in-house and off the helpdesk.