Redis Articles
Articles covering Redis integration patterns with Spring Boot including caching, session management, and Pub/Sub.
-
How to Implement JWT Refresh Tokens with Spring Security
A guide to issuing, rotating, and revoking access tokens and refresh tokens in Spring Boot, including Redis persistence and reuse detection.
-
How to Implement Idempotency (Idempotency-Key) in Spring Boot REST APIs
A practical guide to implementing Idempotency-Key header-based idempotency in Spring Boot, covering implementation code using Filter and Redis, concurrent request handling, and TTL design.
-
How to Use Redis with Spring Boot - Implementation Patterns for Session Management, Caching, and Pub/Sub
Covers everything from basic RedisTemplate operations using spring-boot-starter-data-redis, to externalizing sessions with Spring Session, configuring Redis as a @Cacheable backend, and implementing Pub/Sub — organized by use case.
-
How to Use Spring Boot Caching - Easy Performance Improvement with @Cacheable
A practical guide covering Spring Cache Abstraction mechanics, how to use @Cacheable, @CacheEvict, and @CachePut, switching between Caffeine and Redis, and measuring hit rates with Micrometer, all with hands-on code. For beginner to intermediate developers who want to improve response latency from duplicate DB or external API calls with just a few annotations.