latency-critical-systems
하는 일
실시간 대시보드나 트레이딩 시스템처럼 아주 빠르게 응답해야 하는 시스템의 속도를 점검하고 개선하는 데 도움을 줍니다. 일이 얼마나 빨리 일어나는지 측정하고, 어디에서 느려지는지 찾아냅니다.
사용하는 경우
- ✓실시간 응답 속도가 매우 중요할 때.
- ✓데이터 스트리밍 시스템의 병목 지점을 파악하고 싶을 때.
- ✓데이터가 사용자에게 얼마나 빨리 도달하는지 최적화할 때.
스킬 링크
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 시장 데이터 피드의 지연 시간을 분석하고 병목 지점을 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 도구는 속도의 여러 측면을 측정합니다. 작업이 완료되기까지 걸리는 시간(p50, p95, p99), 데이터가 갱신되는 속도, 대기열의 크기 등입니다. 또한 데이터가 이동하는 경로를 그려 지연이 발생하는 곳을 찾습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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:
- p50, p95, and p99 latency;
- throughput;
- freshness age;
- queue depth;
- cache hit rate;
- provider/API response time;
- browser render time;
- correctness under load;
- failure and retry behavior.
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
- Remove unnecessary round trips.
- Cache stable reads with freshness metadata.
- Batch small calls and writes.
- Move compute closer to the data or the user.
- Split hot and cold paths.
- Apply backpressure before queues grow unbounded.
- Use streaming only when it improves freshness or user experience.
- Add canaries for stale data, degraded providers, and bad cache state.
Verification
Use live readbacks when a deployed surface exists:
- HTTP timing and response headers;
- provider freshness timestamp;
- queue or job state;
- edge/cache state;
- browser verification for actual UI freshness;
- logs around retries and degraded mode.
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
- Do not optimize latency by dropping required validation.
- Do not hide stale data behind fast cache hits.
- Do not claim millisecond behavior from client labels without measurement.
- Do not run live orders, destructive migrations, or customer-impacting deploys without an explicit approval gate.
- Keep secrets and private payloads out of logs and benchmark artifacts.
자주 묻는 질문
p50, p95, p99 지연 시간이란 무엇인가요?
속도를 측정하는 지표입니다. p50은 작업의 절반이 완료되는 데 걸리는 시간, p95는 95%의 작업이 완료되는 데 걸리는 시간, p99는 99%의 작업이 완료되는 데 걸리는 시간입니다. 평균 속도와 최악의 경우를 함께 파악하는 데 도움이 됩니다.
‘데이터 신선도(freshness age)’란 무엇인가요?
데이터가 얼마나 최근의 것인지를 나타냅니다. 데이터가 너무 오래되면 쓸모가 없거나 오히려 해로울 수 있습니다.
이 도구를 금융 거래에 사용할 수 있나요?
아니요. 이 도구는 시스템 속도를 개선하는 엔지니어링에 초점을 맞추고 있으며, 금융 조언을 하거나 거래를 실행하기 위한 것이 아닙니다.
상세 정보
작성자의 원본 설명
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.
repo: affaan-m/ECC
인기도
- GitHub 스타
- 280k
- 순위
- #203
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
accessibility
280k에이전트가 모든 사람이 쓸 수 있는 인터페이스를 만들도록 돕습니다. 시각 장애나 운동 장애가 있는 사람도 쓸 수 있게 합니다.
agent-architecture-audit
280k에이전트가 모든 것이 올바르게 작동하는지 점검하도록 돕습니다. AI 시스템의 문제를 찾아 고쳐서 기대대로 작동하게 합니다.
agent-eval
280k에이전트가 서로 다른 AI 코딩 도구를 비교하도록 돕습니다. 특정 작업에서 어느 도구가 더 빠르고, 저렴하고, 믿을 만한지 측정합니다.
agent-harness-construction
280k에이전트가 작업을 더 잘 이해하도록 돕습니다. 에이전트가 쓰는 도구와 지시문을 최적화해 성공 가능성을 높입니다.
비슷한 스킬
shopify
260kShopify GraphQL API로 상품, 재고, 주문, 고객 같은 스토어 데이터를 읽고 업데이트하도록 에이전트를 돕습니다.
rest-graphql-debug
260kREST나 GraphQL API 호출이 실패하는 이유를 찾도록 돕습니다. 연결, 로그인, 요청 형식, 응답을 한 층씩 확인합니다.
har-derived-api-client
260k웹사이트의 네트워크 트래픽을 한 번 기록해 직접 API 클라이언트를 만들도록 돕습니다. 매번 페이지를 클릭하지 않아도 됩니다.