teaql-cloud-starter
One-line cloud bootstrap for TeaQL Rust services — the Spring Boot Starter equivalent.
Overview
Packages all cloud capabilities into a single CloudApp builder:
- Nacos v2 gRPC or Consul HTTP connection
- Service registration & discovery
- Configuration center (Nacos)
- Spring Boot Actuator-compatible endpoints (health/info/metrics)
- Graceful shutdown (SIGINT/SIGTERM)
Usage
use CloudApp;
async
What start() Does
- Connect to Nacos or Consul
- Register service instance
- Assemble Axum Router (your routes + actuator routes)
- Start HTTP server
- Wait for SIGINT/SIGTERM
- Shutdown: readiness → OUT_OF_SERVICE → deregister → drain → exit
Auto-injected Components
NacosCloud/ConsulCloudasHealthIndicator(registry connection health)NacosCloud/ConsulCloudasMetricsCollector(connection alive gauge)