算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
go-http-client-resilience【设计与创意】Design, implement, test, and review resilient Go HTTP client boundaries with context propagation, layered timeouts, transport reuse, request construction, authentication, status classification, bounded bodies, retry safety, backoff, rate limits, pagination, observability, and deterministic fakes. Use when a Go CLI or service calls remote APIs or when…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Treat HTTP as a failure-prone boundary with a finite time and resource budget. Retry only when both the failure and the operation are safe.
| Task | Load |
|---|---|
| Build or overhaul an HTTP client | guidelines.md, workflows/build-http-client.md |
| Configure deadlines, retries, or pagination | references/http-client-resilience/rules.md |
| Review Go patterns | references/http-client-resilience/examples.md |
| Understand failure and budget models | references/http-client-resilience/knowledge.md |
Guidance is transformed and paraphrased from Marian Montagnino, Building Modern CLI Applications in Go (Packt, 2023), especially Chapter 6, and Ricardo Gerardi, Powerful Command-Line Applications in Go (2021).
Streaming, transport-pool, and HTTP test guidance also incorporates transformed material from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapter 7.
Body ownership and client-timeout guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapter 10.
Verify behavior against https://pkg.go.dev/net/http and current API-specific rate-limit, pagination, and idempotency documentation.