본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)280k · #203

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  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:

  • 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬