Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)280k · #203

latency-critical-systems

Skill này làm gì

Công cụ này giúp kiểm tra và cải thiện tốc độ của các hệ thống cần phản hồi rất nhanh, như bảng điều khiển thời gian thực hoặc hệ thống giao dịch. Nó đo lường mọi thứ diễn ra nhanh đến đâu và chỗ nào có thể chậm.

Khi nào nên dùng

  • ✓Khi tốc độ phản hồi theo thời gian thực là rất quan trọng.
  • ✓Khi muốn hiểu các điểm nghẽn trong hệ thống truyền dữ liệu.
  • ✓Khi tối ưu hóa tốc độ dữ liệu đến tay người dùng.

Liên kết skill

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích độ trễ của nguồn dữ liệu thị trường của tôi và tìm các điểm nghẽn.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ đo nhiều khía cạnh của tốc độ, như thời gian hoàn thành một thao tác (p50, p95, p99), tốc độ cập nhật dữ liệu và kích thước hàng đợi chờ. Nó cũng vẽ lại đường đi của dữ liệu để tìm chỗ bị chậm.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

p50, p95 và p99 là gì?

Đây là các chỉ số đo tốc độ. p50 là thời gian để một nửa số thao tác hoàn thành. p95 là thời gian để 95% thao tác hoàn thành. p99 là thời gian cho 99% thao tác. Chúng giúp hiểu cả tốc độ trung bình lẫn trường hợp chậm nhất.

'Freshness age' là gì?

Chỉ số này cho biết dữ liệu mới đến mức nào. Nếu dữ liệu quá cũ, nó có thể không còn hữu ích hoặc thậm chí gây hại.

Tôi có dùng được công cụ này cho giao dịch tài chính không?

Không. Công cụ này tập trung vào kỹ thuật để cải thiện tốc độ hệ thống, không đưa ra tư vấn tài chính hay thực hiện giao dịch.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
280k
Vị trí xếp hạng
#203
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự