INTERMEDIATE // REAL TIME RESPONSE
MODULE 06 // PERFORMANCE

Response Caching.

Cache ABIS responses strategically to reduce latency without compromising security. Learn cache invalidation strategies for behavioral data.

CACHE STRATEGY

Behavioral assessments are time-sensitive but not ephemeral. A user's risk profile doesn't change between page loads. Strategic caching reduces ABIS calls while maintaining security posture.

Cache key design is critical: user_id + session_id + action_type. This ensures cached responses are specific to the context while enabling reuse for identical scenarios within the same session.

Implement risk-based TTL: low-risk assessments cache longer (5-15 minutes), high-risk assessments cache briefly or not at all (security events should always trigger fresh analysis).

SESSION CACHE

Cache assessments per session. Invalidate on session end or significant behavioral change.

TTL: SESSION

ACTION CACHE

Cache per user+action combination. Same action by same user reuses recent assessment.

TTL: 5 MIN

BASELINE CACHE

Cache user behavioral baselines. Longer TTL since baselines evolve slowly.

TTL: 24 HR

NO CACHE

High-risk actions always get fresh assessment. Security trumps performance.

TTL: 0
KNOWLEDGE CHECK // Q06
Why should high-risk assessments have shorter cache TTLs than low-risk assessments?