Skip to content
Back to skills

Performance

ASecurity

Rate limiting and caching strategy for backend services.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
databasestypescriptgobashsqlapidatabasebackendperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-performance/badge)](https://www.skillsdirectory.com/skills/sebastianluser-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: performance
description: "Rate limiting and caching strategy for backend services."
category: "backend"
argument-hint: "[rate-limit|cache|full]"
user-invocable: true
allowed-tools: ["Read", "Edit", "Write", "Bash", "Glob", "Grep"]
---
# performance — Rate Limiting & Caching Strategy

Stack: Fastify + Prisma + PostgreSQL + Redis + Zod + TypeScript.

## RATE LIMITING

**Default algorithm:** Sliding Window Counter. Three tiers required: CDN/WAF, API Gateway, App Middleware (Redis). Use `rate-limiter-flexible` with Redis.

> → Read references/rate-limit-config.md for algorithm comparison, implementation tiers, recommended limits per endpoint, key dimensions, response headers, and failure modes

## CACHING

**Rule Zero:** Before caching, profile. Caching hides problems a database index would solve. **Default pattern:** cache-aside. **Default invalidation:** short TTL.

> → Read references/cache-strategy.md for cache layer decision table, TTL strategy, patterns, stampede prevention, HTTP headers, and Redis key conventions

## ANTI-PATTERNS

> → Read references/anti-patterns.md for rate limiting (7 items) and caching (11 items) anti-patterns

## Checklist

- [ ] Algorithm matches use case; all three tiers covered
- [ ] Keys include user dimension; RateLimit-* headers + Retry-After on 429
- [ ] Fail-open default, fail-closed for sensitive endpoints
- [ ] Cache justified by profiling; TTL has explicit rationale
- [ ] Invalidation strategy documented; stampede protection on hot paths
- [ ] App works when Redis is down; hit/miss/eviction metrics exported
- [ ] Redis key naming follows `domain:entity:id:variant` convention

Files in this skill

  • SKILL.md1.6 KB
  • references/anti-patterns.md631 B
  • references/cache-strategy.md1.6 KB
  • references/rate-limit-config.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.