{"slug":"latency-critical-systems","title":"latency-critical-systems","summary":"Optimize and verify latency-sensitive systems — realtime dashboards, market data feeds, streaming agents, execution gateways, queues, and caches — by tracking p50/p95/p99 latency, freshness age, and queue depth, mapping hot paths, and running live readbacks. Use when p95 latency,","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-02T16:53:43.288215Z","repo":{"url":"https://github.com/beginwithu/agent-skills","stars":11,"forks":2,"license":"MIT","updatedAt":"2026-12-02T16:37:11Z"},"bodyHtml":"<hr>\n<h2>name: latency-critical-systems\ndescription: Optimize and verify latency-sensitive systems — realtime dashboards, market data feeds, streaming agents, execution gateways, queues, and caches — by tracking p50/p95/p99 latency, freshness age, and queue depth, mapping hot paths, and running live readbacks. Use when p95 latency, throughput, or data freshness matters.\nlicense: MIT\nmetadata:\norigin: ECC\ntools: Read, Write, Edit, Bash, Grep, Glob</h2>\n<h1>Latency Critical Systems</h1>\n<p>Use this skill when the user cares about realtime behavior, hot paths, streaming\nfreshness, or execution speed. This includes HFT-like infrastructure, but the\nskill is engineering-focused. It does not authorize live trading or financial\nadvice.</p>\n<h2>Split The Metrics</h2>\n<p>Do not collapse everything into \"fast.\" Track:</p>\n<ul>\n<li>p50, p95, and p99 latency;</li>\n<li>throughput;</li>\n<li>freshness age;</li>\n<li>queue depth;</li>\n<li>cache hit rate;</li>\n<li>provider/API response time;</li>\n<li>browser render time;</li>\n<li>correctness under load;</li>\n<li>failure and retry behavior.</li>\n</ul>\n<h2>Map The Hot Path</h2>\n<p>Write the path from user/event to final visible state:</p>\n<pre><code>source event -&gt; provider API -&gt; ingest worker -&gt; queue -&gt; cache -&gt; edge route\n-&gt; client stream -&gt; browser render -&gt; user-visible state\n</code></pre>\n<p>Then measure each segment separately.</p>\n<h2>Optimization Order</h2>\n<ol>\n<li>Remove unnecessary round trips.</li>\n<li>Cache stable reads with freshness metadata.</li>\n<li>Batch small calls and writes.</li>\n<li>Move compute closer to the data or the user.</li>\n<li>Split hot and cold paths.</li>\n<li>Apply backpressure before queues grow unbounded.</li>\n<li>Use streaming only when it improves freshness or user experience.</li>\n<li>Add canaries for stale data, degraded providers, and bad cache state.</li>\n</ol>\n<h2>Verification</h2>\n<p>Use live readbacks when a deployed surface exists:</p>\n<ul>\n<li>HTTP timing and response headers;</li>\n<li>provider freshness timestamp;</li>\n<li>queue or job state;</li>\n<li>edge/cache state;</li>\n<li>browser verification for actual UI freshness;</li>\n<li>logs around retries and degraded mode.</li>\n</ul>\n<p>For market-data or execution-adjacent paths, also verify orderbook age, VWAP\nassumptions, provider status, and kill-switch behavior before calling the path\nready.</p>\n<h2>Guardrails</h2>\n<ul>\n<li>Do not optimize latency by dropping required validation.</li>\n<li>Do not hide stale data behind fast cache hits.</li>\n<li>Do not claim millisecond behavior from client labels without measurement.</li>\n<li>Do not run live orders, destructive migrations, or customer-impacting deploys\nwithout an explicit approval gate.</li>\n<li>Keep secrets and private payloads out of logs and benchmark artifacts.</li>\n</ul>\n","files":[{"path":"LICENSE","sizeBytes":1071,"isText":false},{"path":"SKILL.md","sizeBytes":2500,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-02T16:57:40.130354Z","sha256":"CEEAA951A3E1DDEE7983F4A451A87F6ECD8D7592E04CC4C71FFF5D9A658876A8","sizeBytes":2105},"review":null,"source":{"repositoryUrl":"https://github.com/beginwithu/agent-skills","path":"skills/latency-critical-systems","license":"MIT","commit":"a960304c52212f2e845067047f5cefc0c594d787","subtreeSha":"23A246465F316C793F7D1434E42C7760243E6F6852410901A9F75E356AA2BE87","lastSyncedAt":"2026-12-02T16:52:59.20206Z"},"reviewedAt":"2026-12-02T17:05:14.725924Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/beginwithu/agent-skills/tree/main/skills/latency-critical-systems"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install beginwithu-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/beginwithu/agent-skills.git"}]}