Session Cache

Overview

In-memory cache storing user sessions, temporary authentication tokens, and frequently accessed patient data for performance optimization.

Cache Strategy

Technical Details

Specifications:

  • Version: Redis 7.x
  • Mode: Cluster mode with 3 shards
  • Memory: 64 GB per node
  • Replication: Multi-AZ with automatic failover
  • Eviction Policy: LRU (Least Recently Used)

Performance:

  • Latency: P99 < 5ms
  • Throughput: 100,000 ops/sec
  • Hit Rate: Target > 85%
⚡ Cache Warming

Critical patient data is pre-loaded into cache during off-peak hours to ensure fast morning clinic access.

Access Patterns

  • Patient Portal Service: Read/Write user sessions
  • EHR Service: Cache patient demographics for quick lookup
  • Appointment Service: Cache provider availability