Backend & Database Performance — Singleflight, Redis & High-Concurrency APIs
High-concurrency backend, PostgreSQL indexing, Redis multi-tier caching & Singleflight TTFB optimization by Dương Phúc Khánh (khanhdp.com).
Free
Works with the AI Agents you already use
About this skill
Measure before optimizing. Performance work without empirical profiling is guessing — and guessing leads to premature optimization that adds architectural complexity without moving latency metrics.
This skill governs 100% backend, database, server runtime, and API performance. It equips AI agents and backend engineers with rigorous patterns to minimize Time to First Byte (TTFB), eliminate database bottlenecks, protect Node.js/Bun event loops, and design resilient caching architectures.
- API response time (TTFB / p95 / p99) violates SLA budgets (>200ms).
- PostgreSQL queries suffer from sequential scans, buffer misses, or lock contention.
- N+1 query cascades detected in ORM data access (Prisma, TypeORM, Drizzle, Kysely).
- High throughput causes cache stampedes / thundering herds against backing stores.
- Heavy CPU operations or synchronous I/O freeze the Node.js / Bun single-threaded event loop.
- Database connection pool exhaustion or transaction timeouts occur under load.
When NOT to use:
- Frontend DOM, Core Web Vitals, CSS, or browser asset bundling — use
frontend-performance-lighthouse.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 3 days ago
- Free with an Agensi account