Expand description
Shared runtime primitives for Aster services.
This crate contains small process/runtime building blocks that are not tied to a concrete product domain: health report aggregation, startup phase coordination, shutdown phase coordination, buffered side-effect writing, and termination signal handling. Product crates still own runtime state, audit events, background task shutdown order, database handles, and service-specific readiness checks.
Re-exports§
pub use buffered::BufferedBatchConfig;pub use buffered::BufferedBatchWriter;pub use component::RuntimeComponentBuilder;pub use component::RuntimeComponentBundle;pub use component::RuntimeComponentDescriptor;pub use component::RuntimeComponentGraphError;pub use component::RuntimeComponentKind;pub use component::RuntimeComponentRegistry;pub use component::RuntimeShutdownDescriptor;pub use component::RuntimeStartupDescriptor;pub use component::RuntimeTaskDescriptor;pub use health::HealthCheckDescriptor;pub use health::HealthCheckOptions;pub use health::HealthCheckRegistry;pub use health::HealthCheckRegistryBuilder;pub use health::HealthCheckRequirement;pub use health::HealthCheckScope;pub use health::HealthCheckScopes;pub use health::HealthComponentDetail;pub use health::HealthComponentDetailValue;pub use health::HealthComponentReport;pub use health::HealthMetricsRecorder;pub use health::HealthStatus;pub use health::SystemHealthReport;pub use lease::DEFAULT_RUNTIME_LEASE_RETRY_INTERVAL;pub use lease::DEFAULT_RUNTIME_LEASE_TTL;pub use lease::RuntimeLeaseAcquire;pub use lease::RuntimeLeaseClaim;pub use lease::RuntimeLeaseConfig;pub use lease::RuntimeLeaseOwner;pub use lease::RuntimeLeaseStore;pub use lease::new_runtime_lease_owner_id;pub use lease::run_runtime_lease_supervisor;pub use lifecycle::AsterRuntime;pub use lifecycle::AsterRuntimeBuilder;pub use lifecycle::AsterRuntimeComponent;pub use lifecycle::AsterRuntimeError;pub use lifecycle::RuntimeComponentBundleRegistration;pub use lifecycle::RuntimeComponentWithShutdown;pub use lifecycle::RuntimeServiceComponent;pub use lifecycle::ServiceLifecycle;pub use lifecycle::ShutdownResourceComponent;pub use lifecycle::TryRuntimeComponentWithShutdown;pub use lifecycle::runtime_component;pub use lifecycle::runtime_component_with_shutdown;pub use lifecycle::shutdown_resource_component;pub use lifecycle::shutdown_resource_component_after;pub use lifecycle::try_runtime_component_with_shutdown;pub use shutdown::RuntimeSignalError;pub use shutdown::ShutdownCoordinator;pub use shutdown::ShutdownPhaseReport;pub use shutdown::ShutdownPhaseStatus;pub use shutdown::ShutdownReport;pub use shutdown::TerminationSignal;pub use shutdown::log_shutdown_report;pub use shutdown::spawn_termination_signal_handler;pub use shutdown::wait_for_termination_signal;pub use startup::RuntimeTempDirError;pub use startup::StartupCoordinator;pub use startup::StartupPhaseFailurePolicy;pub use startup::StartupPhaseOutcome;pub use startup::StartupPhaseReport;pub use startup::StartupPhaseStatus;pub use startup::StartupReport;pub use startup::create_runtime_temp_dir_guard;pub use startup::ensure_runtime_temp_dir;pub use startup::run_optional_startup_phase;pub use startup::run_required_startup_phase;
Modules§
- buffered
- Generic buffered batch writer for runtime side-effect queues.
- component
- Runtime component registration primitives.
- health
- Product-neutral health report models and runner.
- lease
- Runtime lease supervision for multi-instance services.
- lifecycle
- Service lifecycle runner.
- shutdown
- Termination signal helpers.
- startup
- Startup phase coordination primitives.