Skip to content
caching-strategies logo

Caching Strategies

caching-strategies

Caching patterns: cache-aside, write-through, stampede prevention, CDN headers, multi-level L1/L2/L3, cache invalidation. Use when designing caches or CDN strategy.

rnavarych/alpha-engineer0installs15stars

SKILL.md

Full skill instructions

Caching Strategies

When to use

  • Designing cache layers for high-traffic systems
  • Preventing cache stampede / thundering herd
  • Setting CDN/​HTTP cache headers or cache invalidation strategy

Core principles

  1. Cache-aside is the default — application controls all cache interactions
  2. Always add jitter to TTL — ±10% prevents synchronized expiry stampedes
  3. Cache invalidation is harder than caching — design invalidation FIRST, then TTL
  4. Multi-level cache reduces latency multiplicatively — L1 (in-memory) → L2 (Redis) → L3 (DB)
  5. A cache miss should never cascade to DB overload — use lock-based prevention

References available

  • references/​caching-patterns.md — cache-aside, write-through, write-behind, multi-level with code
  • references/​redis-deep-dive.md — data structures for caching, eviction policies, cluster mode
  • references/​cdn-edge-caching.md — Cache-Control headers, stale-while-revalidate, purge strategies
  • references/​cache-invalidation.md — stampede prevention, event-driven invalidation, versioned keys

Assets available

  • assets/​caching-checklist.md — what to cache, TTL recommendations, monitoring queries

More skills from rnavarych

Applies mathematical optimization — linear programming (simplex, interior point, duality), integer/mixed-integer programming (branch-and-bound, cutting planes), convex optimization (gradient descent variants, Adam, L-BFGS, Newton), constraint satisfaction (backtracking, AC-3, SAT/SMT solvers), an...

15 0
View
domain-iot:iot-security logo
rnavarych/alpha-engineer

domain-iot:iot-security

IoT security practices covering device identity with X.509 and secure elements, secure boot chains, encrypted communication (TLS/DTLS), firmware signing, network segmentation, device attestation, and vulnerability management for resource-constrained devices.

15 0
View
role-architect:migration-planner logo
rnavarych/alpha-engineer

role-architect:migration-planner

Migration planning expertise including strangler fig pattern, parallel run strategy, data migration techniques, feature parity tracking, rollback plans, phased timelines, risk mitigation, and zero-downtime migration.

15 0
View
role-frontend:state-management logo
rnavarych/alpha-engineer

role-frontend:state-management

State management expertise including local vs global state decisions, Redux Toolkit, Zustand, Jotai, MobX, Context API patterns, server state (React Query, SWR) vs client state, optimistic updates, and state machines with XState.

15 0
View
role-devops:terraform-expert logo
rnavarych/alpha-engineer

role-devops:terraform-expert

Terraform and Infrastructure as Code expertise covering HCL module design, state management, workspaces, provider configuration, drift detection, Terragrunt, infrastructure testing, and resource lifecycle management.

15 0
View
role-aqa:test-data-management logo
rnavarych/alpha-engineer

role-aqa:test-data-management

Test data management with factory patterns (Faker.js, Fishery, Factory Bot), database seeding, test data isolation (transactions, cleanup), anonymization and masking for production data, synthetic data generation, fixture management, and shared test state risks. Use when designing test data strat...

15 0
View
mobile-flutter logo
rnavarych/alpha-engineer

mobile-flutter

Flutter 3.27+ patterns — Riverpod 2 state with codegen, GoRouter 14+ navigation, Impeller rendering (default on all platforms), WASM web, extension types, on-device AI (firebase_ai, MediaPipe), Patrol 3.x testing, platform channels, performance

15 0
View
role-architect:gcp-architect logo
rnavarych/alpha-engineer

role-architect:gcp-architect

GCP architecture expertise including Google Cloud Architecture Framework, project and organization structure, VPC and networking design, data and analytics architecture, Kubernetes and serverless patterns, AI/ML platform design, security architecture, and cost optimization strategies. Use proacti...

15 0
View
role-aqa:ci-test-integration logo
rnavarych/alpha-engineer

role-aqa:ci-test-integration

CI/CD test integration: parallel test execution (sharding), test splitting strategies, flaky test quarantine, test reporting (Allure, ReportPortal, JUnit XML), quality gates (coverage thresholds, no new failures), test result caching, and pre-commit hooks. Use when configuring test pipelines, opt...

15 0
View
role-devops:monitoring-setup logo
rnavarych/alpha-engineer

role-devops:monitoring-setup

Monitoring and observability expertise covering Prometheus/Grafana stack, Datadog, CloudWatch, PagerDuty integration, custom metrics, dashboard design using USE/RED methods, alert routing, uptime monitoring, and log aggregation.

15 0
View
role-frontend:vue-expert logo
rnavarych/alpha-engineer

role-frontend:vue-expert

Vue.js expertise including Composition API, Pinia state management, Nuxt.js 3, Vue Router, custom directives, provide/inject patterns, transition system, and Volar tooling configuration.

15 0
View
alpha-core:observability logo
rnavarych/alpha-engineer

alpha-core:observability

Sets up observability: structured logging, metrics collection, distributed tracing, alerting rules, dashboard design, SLI/SLO/SLA definition. Covers ELK, Prometheus, Grafana, Datadog, OpenTelemetry. Use when implementing monitoring, debugging production issues, or designing observability architec...

15 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View