AGENT SKILL
latency
Network latency fundamentals
- License 许可
- MIT
- 最近更新
- 2026-03-01
- Stars
- ★ 3
- Forks
- 2
01 前言 Front Matter
- name
- latency
- license
- MIT
- metadata
- { "audience": "web-developers", "category": "networking" }
- description
- Network latency fundamentals
- compatibility
- opencode
02 资源文件 8
- 参考文档references/activity-views.md9.0 KB
- 参考文档references/charts.md25.3 KB
- 参考文档references/collections.md3.3 KB
- 参考文档references/color-wells.md2.7 KB
- 参考文档references/image-views.md6.5 KB
- 参考文档references/image-wells.md2.0 KB
- 参考文档references/lockups.md6.0 KB
- 参考文档references/web-views.md2.2 KB
03 SKILL.md 正文
What I do
- Measure and analyze network latency
- Identify latency sources in systems
- Design low-latency architectures
- Optimize data transfer protocols
- Implement caching strategies
- Reduce round-trip times
- Profile application performance
When to use me
Use me when:
- Diagnosing slow network performance
- Building real-time applications
- Designing distributed systems
- Optimizing user experience
- Understanding network bottlenecks
- Planning capacity and scaling
Key Concepts
Latency vs Bandwidth
- Latency: Time for single packet (ms)
- Bandwidth: Data per second (Mbps)
- They affect performance differently:
- Latency critical for interactive apps
- Bandwidth critical for bulk transfers
Speed of Light Limits
- Fiber: ~200,000 km/s (2/3 c)
- Theoretical minimum latency = distance / speed
- Example: NYC to London ~70ms minimum
Latency Components
Total Latency =
┌─────────────────┐
│ Processing │ (routers, switches)
│ + Serialization │ (bits on wire)
│ + Propagation │ (distance/speed of light)
│ + Transmission │ (bandwidth limits)
│ + Queuing │ (congestion)
└─────────────────┘
Measurement Tools
- ping: RTT to host
- traceroute: Path and per-hop latency
- WebPageTest: Full page load analysis
- Chrome DevTools: Network timing
- APM tools: Application latency tracking
Common Latency Targets
| Application | Target Latency |
|---|---|
| Web (initial) | < 2 seconds |
| API calls | < 200ms |
| Real-time (gaming) | < 50ms |
| Financial trading | < 1ms |
| VoIP | < 150ms |
04 同仓库更多 Skills
xamarin
Xamarin cross-platform development
★ 3
wrangling
Data wrangling fundamentals
★ 3
windows
Windows operating system administration and scripting
★ 3
wide-column
Wide-column data model
★ 3
wide-column-stores
Wide-column database stores
★ 3
websockets
WebSocket implementation and best practices
★ 3