本文へスキップ
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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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%の処理が完了するまでの時間を表します。平均的な速度と最悪ケースの両方を把握するのに役立ちます。

「鮮度(データの新しさ)」とは何ですか?

データがどれくらい新しいかを示す指標です。データが古すぎると役に立たなくなったり、有害になったりすることもあります。

金融取引に使えますか?

いいえ。このツールはシステムの速度改善というエンジニアリングを目的としており、投資助言や取引の実行を目的としたものではありません。

詳細

作者による元の説明

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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル