Przejdź do treści
Biblioteka skilli
DevOps i chmura · Budowanie i kod

performance-caching-rate-limits

/performance-caching-rate-limits

Projektuje cache, limity żądań i kwoty, w tym Redis, CDN i odpowiedzi 429, oraz plany testów obciążeniowych k6 i JMeter.

Repozytorium
checkyourself ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Projektuje cache, limity żądań i kwoty, w tym Redis, CDN i odpowiedzi 429, oraz plany testów obciążeniowych k6 i JMeter.

Oryginalny opis (EN)

Use this capability for performance optimization, load tests, k6/JMeter/Locust plans, caching, Redis, CDN, Cache-Control, invalidation, rate limiting, quotas, token bucket, sliding window, 429 behavior, abuse protection, and cost-based throttling.

Jak działa

  1. Operating contract
  2. When to activate
  3. Inputs to request or inspect
  4. Work protocol
  5. Required output format
  6. Verification gates
  7. Anti-patterns to block
  8. Hand-off rules
  9. Examples
  10. References to load on demand
Sekcje z nagłówków SKILL.md, w oryginale · 68 linii, 604 słów
Podgląd SKILL.md
---
id: prodhardening.performance_caching_rate_limits
name: performance-caching-rate-limits
version: 1.0.0
status: stable
layer: "13 Performance, Caching & Rate Limits"
summary: "Improve latency and throughput with measurement, caching, CDN strategy, rate limits, backpressure, and abuse controls."
description: "Use this capability for performance optimization, load tests, k6/JMeter/Locust plans, caching, Redis, CDN, Cache-Control, invalidation, rate limiting, quotas, token bucket, sliding window, 429 behavior, abuse protection, and cost-based throttling."
activation:
  explicit_triggers:
    - performance
    - latency
    - throughput
    - load test
    - k6
    - JMeter
    - Locust
    - cache
    - Redis
    - CDN
    - Cache-Control
    - invalidation
    - rate limit
    - quota
    - token bucket
    - 429
    - abuse
    - throttle
inputs:
  - SLOs
  - traffic estimates
  - logs/metrics/traces
  - endpoint list
  - cache candidates
  - rate-limit policy
  - load-test scripts
outputs:
  - performance plan
  - cache design
  - rate-limit design
  - load-test plan
  - bottleneck analysis
  - abuse/cost control review
related_capabilities:
  - prodhardening.scaling_load_resilience
  - prodhardening.observability_sre_incident_response
  - prodhardening.api_backend_services
---
# performance-caching-rate-limits
Improve latency and throughput with measurement, caching, CDN strategy, rate limits, backpressure, and abuse controls.
## Operating contract

Act as a production hardening specialist for **13 Performance, Caching & Rate Limits**. Use model-agnostic reasoning: no instruction, output, or workflow in this capability depends on a particular model vendor or agent runtime. Prefer deterministic evidence over persuasive prose. When evidence is missing, name the assumption and make it visible in the output.
## When to activate
Use this capability for performance optimization, load tests, k6/JMeter/Locust plans, caching, Redis, CDN, Cache-Control, invalidation, rate limiting, quotas, token bucket, sliding window, 429 behavior, abuse protection, and cost-based throttling.
## Inputs to request or inspect
- SLOs
- traffic estimates
- logs/metrics/traces
- endpoint list
- cache candidates
- rate-limit policy
- load-test scripts

## Work protocol
1. Start with a measurable hypothesis: metric, baseline, target, traffic model, dataset, and expected bottleneck.
2. Optimize in order: eliminate unnecessary work, fix data access, add caching, tune concurrency, then scale infrastructure.
3. Design cache keys with tenant/user/permission dimensions. Define freshness, invalidation, stampede protection, and fallback behavior.
4. Design rate limits by actor, endpoint cost, tenant tier, authentication state, and abuse case. Return useful 429 responses with retry guidance.
5. Load-test the system and the load generator. Watch generator CPU, memory, network, and file descriptor limits to avoid false results.
6. Connect performance work to observability: latency percentiles, saturation, error rate, queue depth, cache hit ratio, and cost.

## Required output format

Return a concise report with these sections unless the user requested a concrete file or code diff:

1. **Scope interpreted** — what is in and out.
2. **Findings / decisions** — ordered by production risk, not by discovery order.
3. **Recommended actions** — owner-ready tasks with priority and rationale.
4. **Verification evidence** — tests, scans, contracts, telemetry, commands, or review steps required.
5. **Residual risk / assumptions** — what remains uncertain and how to resolve it.
6. **Hand-offs** — other capabilities that should review the work.
## Verification gates
- Performance claims include reproducible measurement and representative data/traffic assumptions.
- Cache keys cannot leak or mix tenant/user/permission-scoped data.
- Rate limits protect login, expensive endpoints, public APIs, webhooks, and AI/model calls where relevant.
- Load tests define success thresholds and failure interpretation before running.
- Optimization does not remove correctness, security, or observability controls.

## Anti-patterns to block
- Do not add global cache keys for scoped data.
- Do not benchmark with a saturated load generator and trust the latency numbers.
- Do not rate-limit only by IP when authenticated actor or tenant is the real cost/security boundary.

## Hand-off rules
- Hand off to the orchestrator when a request spans more than three production layers or has unclear risk ownership.
- Consider `prodhardening.scaling_load_resilience` when its layer is implicated by the findings.
- Consider `prodhardening.observability_sre_incident_response` when its layer is implicated by the findings.
- Consider `prodhardening.api_backend_services` when its layer is implicated by the findings.

## Examples
**Prompt:** “This API is slow.”

**Expected handling:** Check baseline, query plans, trace spans, cache candidates, concurrency, and SLO impact.

**Prompt:** “Add rate limits to our AI endpoint.”

**Expected handling:** Design actor tiers, token/cost accounting, burst limits, 429 UX, abuse cases, and monitoring.

## References to load on demand
- `../../references/performance-caching-rate-limits.md` — read when detailed checklists, templates, or implementation guidance are needed.
- `../../templates/performance-test-plan.md` — read when detailed checklists, templates, or implementation guidance are needed.

## Completion definition
The work is complete only when recommendations are actionable, verification steps are explicit, and unresolved assumptions are visible. Never present a system as production-ready solely because code was generated or a checklist was copied.
Pliki w paczce (2)
  • CAPABILITY.md 6 KB
  • SKILL.md 6 KB

Wersje

W bazie nie ma innych skilli o nazwie performance-caching-rate-limits.

Migawka bazy z 28.10.2026 · wersja paczki e9cda9fef050 (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95cache-strategy
    Dobiera strategię cache'owania dla Redis i CDN: wzorce, TTL i unieważnianie, przy decyzjach architektonicznych.
  • 100caching-strategies
    Opisuje wzorce cache w aplikacjach: Redis, cache w pamięci, cache HTTP, CDN, unieważnianie, cache-aside, write-through i stale-while-revalidate.
  • 100managing-api-cache
    Wdraża buforowanie odpowiedzi API z Redis, Memcached i integracją z CDN, aby poprawić wydajność API.
  • 100managing-api-cache
    Wdraża buforowanie odpowiedzi API z Redis, Memcached i integracją z CDN, aby poprawić wydajność API.
  • 90role-backend:caching-strategies
    Wdraża cache w Redis, Memcached i na CDN: wzorce cache-aside i write-through, unieważnianie, TTL i ochronę przed lawiną żądań.
  • 100caching-strategies
    Projektuje wielowarstwowe architektury cache dla aplikacji webowych: wzorce cache-aside i write-through, TTL, unieważnianie, Redis, CDN, nagłówki Cache-Control i ochrona przed stampede.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.