Crate syros

Crate syros 

Source
Expand description

Syros - Distributed Coordination Service

A high-performance, distributed coordination platform built in Rust that provides essential distributed system patterns including distributed locks, saga orchestration, event sourcing, and caching for microservices architectures.

§Features

  • Distributed Locks: Prevent race conditions in distributed systems
  • Saga Orchestration: Manage distributed transactions with compensation
  • Event Sourcing: Store and replay application state changes
  • Caching: High-performance distributed caching
  • Service Discovery: Automatic service registration and discovery
  • Authentication & Authorization: JWT and RBAC support
  • Multiple APIs: REST, gRPC, WebSocket, and GraphQL
  • Observability: Metrics, logging, and tracing

§Quick Start

use syros_platform::{server, cli};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let cli = cli::parse_args();
    // Start the server with your configuration
    Ok(())
}

Re-exports§

pub use errors::Result;
pub use errors::SyrosError;

Modules§

api
auth
cli
Command Line Interface module for the Syros.
config
Configuration management for the Syros.
core
errors
Error types and handling for the Syros.
generated
metrics
Metrics collection and monitoring.
server
Server module for the Syros.
storage