cache-topologies

Select and configure cache layer topologies for distributed systems.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill cache-topologies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cache-topologies
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/performance/cache-topologies
Command: npx skills add https://github.com/hung-phan/system-skills --skill cache-topologies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps in choosing and combining cache layers to optimize for performance, consistency, and capacity, addressing issues like cache misses, hot shards, and thundering herds.

Core Features & Use Cases

  • Cache Topology Analysis: Analyze and select the right cache topology for specific scenarios.
  • Consistency and Capacity Management: Address issues related to data consistency and capacity scaling.
  • Use Case: When dealing with high read patterns on a database, this Skill guides you on implementing a local cache like Caffeine or a remote cache like Redis to improve latency and reduce database load.

Quick Start

Analyze the cache topology for your application using the cache-topologies skill.

Frequently Asked Questions about cache-topologies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right cache topology for high read patterns?

To choose a cache topology for high read patterns, analyze whether an in-process cache like Caffeine or a remote cache like Redis best reduces database load and improves latency.

What is the best way to prevent thundering herds and hot shards in a distributed cache?

Preventing thundering herds and hot shards requires selecting and configuring distributed cache topologies that properly balance capacity scaling and data consistency across replicated or sharded layers.

How do I configure cache invalidation strategies for data consistency in distributed systems?

Configuring cache invalidation for distributed systems involves selecting appropriate cache topologies and applying strategies that maintain data consistency across in-process and remote layers during capacity scaling.

When should I use a local in-process cache versus a remote replicated cache?

Use a local in-process cache like Caffeine to optimize latency for high read patterns, and deploy a remote replicated cache like Redis when you need to scale capacity and manage consistency across distributed nodes.

Does combining multiple cache layers help with capacity scaling and consistency management?

Combining multiple cache layers helps with capacity scaling and consistency management by addressing cache misses and hot shards through properly selected in-process, remote, sharded, and replicated topologies.