Latency critical systems

From nguyentrunghieutcu/ctxora-engine · View interactive version

Latency critical systems is an AI agent skill from the GitHub repository nguyentrunghieutcu/ctxora-engine. Use for latency-sensitive systems such as realtime dashboards, market data, streaming agents, execution gateways, queues, caches, or HFT-like infrastructure where freshness and p95 latency matter. Use when p95 latency or data freshness matters — realtime dashboards, market data, streaming agents, qu

How to use this skill

Skill file

Latency Critical Systems

Use this skill when the user cares about realtime behavior, hot paths, streaming

freshness, or execution speed. This includes HFT-like infrastructure, but the

skill is engineering-focused. It does not authorize live trading or financial

advice.

Split The Metrics

Do not collapse everything into "fast." Track:

Map The Hot Path

Write the path from user/event to final visible state:

source event -> provider API -> ingest worker -> queue -> cache -> edge route
-> client stream -> browser render -> user-visible state

Then measure each segment separately.

Optimization Order

  1. Remove unnecessary round trips.
  2. Cache stable reads with freshness metadata.
  3. Batch small calls and writes.
  4. Move compute closer to the data or the user.
  5. Split hot and cold paths.
  6. Apply backpressure before queues grow unbounded.
  7. Use streaming only when it improves freshness or user experience.
  8. Add canaries for stale data, degraded providers, and bad cache state.

Verification

Use live readbacks when a deployed surface exists:

For market-data or execution-adjacent paths, also verify orderbook age, VWAP

assumptions, provider status, and kill-switch behavior before calling the path

ready.

Guardrails

without an explicit approval gate.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.