latency-critical-systems
यह क्या करती है
यह tool उन systems की speed जांचने और सुधारने में मदद करता है जिन्हें बहुत तेज़ जवाब देना होता है, जैसे real-time dashboards या trading systems। यह मापता है कि चीज़ें कितनी तेज़ी से होती हैं और कहां धीमी पड़ सकती हैं।
कब इस्तेमाल करें
- ✓जब real-time जवाब की speed बहुत ज़रूरी हो।
- ✓data streaming systems में रुकावट (bottlenecks) समझने के लिए।
- ✓यह बेहतर करने के लिए कि data user तक कितनी जल्दी पहुंचे।
Skill का लिंक
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/latency-critical-systems/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे market feed की latency का विश्लेषण करो और bottlenecks पहचानो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह tool speed के अलग-अलग पहलू मापता है, जैसे किसी action को पूरा होने में कितना समय लगता है (p50, p95, p99), data कितनी जल्दी अपडेट होता है, और waiting queues का आकार। यह उस रास्ते का नक्शा भी बनाता है जिस पर data चलता है, ताकि पता चले देरी कहां हो रही है।
तकनीकी सामग्री (मूल 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 latencies क्या हैं?
ये speed के माप हैं। p50 वह समय है जिसमें आधे actions पूरे हो जाते हैं। p95 वह समय है जिसमें 95% actions पूरे होते हैं। p99 वह समय है जिसमें 99% actions पूरे होते हैं। इससे औसत speed और सबसे खराब स्थिति, दोनों समझ में आते हैं।
'freshness age' क्या है?
यह बताता है कि data कितना ताज़ा है। अगर data बहुत पुराना हो, तो वह उपयोगी नहीं रहता, और कभी-कभी नुकसानदेह भी हो सकता है।
क्या मैं इसे financial trading के लिए इस्तेमाल कर सकता हूं?
नहीं। यह tool system की speed सुधारने के engineering काम पर केंद्रित है, यह financial सलाह देने या trades करने के लिए नहीं है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
accessibility
280kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।
agent-architecture-audit
280kयह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।
agent-eval
280kयह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।
agent-harness-construction
280kयह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।
मिलती-जुलती skills
shopify
260kआपके एजेंट को Shopify GraphQL API से स्टोर का डेटा पढ़ने और अपडेट करने देती है, जैसे उत्पाद, स्टॉक, ऑर्डर और ग्राहक।
rest-graphql-debug
260kआपके एजेंट को REST या GraphQL API कॉल क्यों विफल होती है, यह पता करने में मदद करती है, कनेक्शन, लॉगिन, अनुरोध फ़ॉर्मैट और जवाब को एक-एक परत करके जाँचते हुए।
har-derived-api-client
260kआपके एजेंट को किसी वेबसाइट के नेटवर्क ट्रैफ़िक को एक बार रिकॉर्ड करके सीधा API क्लाइंट बनाने देती है, ताकि हर बार पेज पर क्लिक करना न पड़े।