domain-cloud-native

Installation
Summary

Design constraints and patterns for building stateless, observable cloud-native applications in Rust.

  • Enforces stateless design, graceful shutdown with SIGTERM handling, and 12-factor configuration via environment variables to support Kubernetes orchestration and zero-downtime deployments
  • Requires distributed tracing with tracing and OpenTelemetry, plus dedicated /health and /ready endpoints for liveness and readiness probes
  • Recommends key crates: tonic for gRPC services, kube and kube-runtime for Kubernetes operators, prometheus for metrics, and tokio::signal for graceful termination
  • Traces design decisions down to Layer 2 patterns (span lifecycle, signal handling, connection draining) and Layer 1 implementations (Arc-wrapped external clients, tokio signal handlers)
SKILL.md

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

Related skills

More from zhanghandong/rust-skills

Installs
521
GitHub Stars
1.1K
First Seen
Jan 20, 2026