
Domain Cloud Native
This is your cloud-native constraints checklist for Rust services running in Kubernetes. It keeps you honest about stateless design (no static mut, external state only), graceful SIGTERM handling for zero-downtime deploys, and distributed tracing with OpenTelemetry. The trace-down approach is solid: it maps domain rules like "need health checks" down to specific patterns in other skills like m06-error-handling and domain-web. Heavy on tonic for gRPC, kube-runtime for operators, and the usual observability stack. Useful if you're tired of debugging why your pods got killed mid-request or why you can't trace requests across services.
- skills.sh installs
- 596
- GitHub stars
- 1.3K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add zhanghandong/rust-skills --skill domain-cloud-native --agent claude-codeInstalls into .claude/skills of the current project.
Files
Cloud-Native Domain
Layer 3: Domain Constraints
Domain Constraints → Design Implications
| Domain Rule | Design Constraint | Rust Implication |
|---|---|---|
| 12-Factor | Config from env | Environment-based config |
| Observability | Metrics + traces | tracing + opentelemetry |
| Health checks | Liveness/readiness | Dedicated endpoints |
| Graceful shutdown | Clean termination | Signal handling |
| Horizontal scale | Stateless design | No local state |
| Container-friendly | Small binaries | Release optimization |
Critical Constraints
Stateless Design
RULE: No local persistent state
WHY: Pods can be killed/rescheduled anytime
RUST: External state (Redis, DB), no static mut
Graceful Shutdown
RULE: Handle SIGTERM, drain connections
WHY: Zero-downtime deployments
RUST: tokio::signal + graceful shutdown
Observability
RULE: Every request must be traceable
WHY: Debugging distributed systems
RUST: tracing spans, opentelemetry export
Trace Down ↓
From constraints to design (Layer 2):
Sponsors
Details
- Repository
- github.com/zhanghandong/rust-skills
- Categories
- Rust, Cloud & Infrastructure
- First seen
- May 16, 2026
More from zhanghandong/rust-skills
All 34- Domain Fintech581
- Domain Ml573
- Domain Iot568
- M15 Anti Pattern5.6K
- Coding Guidelines1.2K
- M10 Performance895
- M07 Concurrency844
- M06 Error Handling827
- Rust Refactor Helper821
- M01 Ownership809
- M04 Zero Cost789
- M05 Type Driven786
- M02 Resource783
- M03 Mutability773
- M12 Lifecycle764
- M14 Mental Model751
- M09 Domain750
- M11 Ecosystem747
- M13 Domain Error738
- Rust Trait Explorer731
- Rust Code Navigator728
- Unsafe Checker726
- Domain Cli709
- Rust Symbol Analyzer702