backend-performance
Skill2 starsChanged 5 months agoMITView on GitHub
Diagnóstico y optimización de performance backend: medir antes de optimizar, cachés correctas, batching, índices, conexiones, async, perfiles de CPU/IO. Cargá cuando hay un cuello reportado o un endpoint crítico.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- yiweiwan/skillstheir own version, first seen May 12, 2026
- thejordanleopold/claude-code-skills-distilledtheir own version, first seen Apr 18, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- thejordanleopold/claude-code-skills-distilled★ 4same name
- yiweiwan/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- accessibility-wcagSkill
- agent-orchestrationSkill
- backend-api-designSkill
- backend-data-modelingSkill
- backend-observabilitySkill
- blossom-carouselSkill
- browser-qaSkill
- commit-hygieneSkill
- discovery-intakeSkill
- frontend-component-patternsSkill
- geo-seoSkill
- gh-cliSkill
- glosario-vivoSkill
- llm-councilSkill
- pedido-claroSkill
- ponytailSkill
- reporte-comprensibleSkill
- sdd-flowSkill
- secure-by-defaultSkill
- security-authn-authzSkill
- security-owaspSkill
- security-secretsSkill
- security-supply-chainSkill
- turtle-protocolSkill
- ui-ux-pro-maxSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 95
Test de carga reproducible (k6 script en repo) antes y después.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Backend performance
Cuándo usar
- Latencia o throughput por debajo del SLO.
- Endpoint nuevo en ruta crítica.
- Antes de un evento de tráfico alto.
No cargar para optimizaciones especulativas sin medición.
Disciplina
- Medí primero. Sin perfil, no hay diagnóstico, hay opinión.
- Optimizá el cuello. Mejorar lo que ya es rápido es trabajo perdido.
- Comprobá el efecto. Si no medís después, no sabés si ayudó.
Mediciones base
- Latencia p50/p95/p99 por endpoint.
- Throughput (req/s) sostenido sin degradar.
- Recursos: CPU, memoria, IO, conexiones a BD, cola.
- Distribución: ¿es lento siempre o por colas? Histograma > promedio.
Herramientas
| Capa | Herramienta |
| CPU/IO/lock | perf, pprof, py-spy, clinic.js, async-profiler |
| Queries | EXPLAIN ANALYZE, pg_stat_statements, slow query log |
| Trazas | OpenTelemetry + Jaeger/Tempo (ver [[backend-observability]]) |
| HTTP | k6, vegeta, wrk para carga |
| Memoria | heap dump + analizador del runtime |
Patrones que suelen pagar
Base de datos (suele ser el 80%)
- N+1 → eager loading / JOIN. Detectá con conteo de queries por request.
- Índice faltante en
WHERE/JOIN/ORDER BYfrecuente.EXPLAINpara confirmar uso. SELECT *→ seleccioná solo lo que usás (menos IO, menos transferencia).- Pool de conexiones del tamaño correcto (no infinito).
(núcleos * 2) + spindleses una base. - Read replicas para queries pesadas de lectura, si la consistencia eventual sirve.
Caché
Niveles, del más barato al más caro:
- Memoization del proceso — para cálculos puros, invalida con LRU.
- Caché distribuida (Redis) — para datos compartidos. TTL razonable.
- CDN / edge — para respuestas idempotentes públicas.
Toda caché necesita estrategia de invalidación. Sin esa, es bug en cámara lenta.
Cache stampede → single-flight o lock corto.
Batching y bulk
- Operaciones en N items en una sola query, no N queries.
INSERT ... VALUES (...), (...), (...)oCOPYen Postgres.- Para HTTP: agrupá calls a APIs externas en uno cuando lo permite.
Async y colas
- Tareas que no necesitan respuesta inmediata → cola (BullMQ, Sidekiq, Celery, Tigris, jobs propios).
- Reintentos exponenciales con tope; DLQ para los que fallan persistente.
- Timeouts en toda llamada a red (HTTP, BD, cache). Sin timeout = hang propagado.
Concurrencia
- Limitá la concurrencia entrante (rate limit, semáforo) para no inundar el downstream.
- En Node/Python async: cuidá CPU-bound dentro del event loop → worker threads / multiprocess.
- En Go/Rust: cuidá bloqueos largos en pools de goroutines/tasks.
Reglas duras
- Sin optimización sin perfil. Microbench ≠ producción.
- Sin caché sin TTL e invalidación pensadas.
- Sin llamada de red sin timeout.
- Sin retry sin backoff y tope. Tormenta de retries = autoataque.
Validación
- Test de carga reproducible (k6 script en repo) antes y después.
- p95 dentro de SLO bajo carga objetivo.
- Sin regresión de error rate ni de uso de recursos en el ambiente de stress.
Relacionadas
[[backend-data-modeling]] · [[backend-observability]] · [[backend-api-design]]
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

