steady_state

Crates.iosteady_state
lib.rssteady_state
version
sourcesrc
created_at2024-01-25 21:40:49.621855
updated_at2024-12-02 03:54:25.079174
descriptionFramework for building long running low latency actor based services on Linux. Provides visual telemetry to watch data flows between actors. Uses Erlang style supervisors to defend against panics and uses non blocking async ringbuffers for inter actor communication.
homepage
repositoryhttps://github.com/kmf-lab/steady-state-stack
max_upload_size
id1114526
Cargo.toml error:TOML parse error at line 34, column 1 | 34 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Nathan Tippy (nathantippy)

documentation

https://docs.rs/steady_state/0.0.21/steady_state/

README

Steady State: The Foundation of Resilient Rust Services

Welcome to the Steady State Core, the backbone of the Steady State framework designed to empower developers to build resilient, high-performance services with ease.

Overview

The Steady State Core focuses on delivering essential features that ensure safety, reliability, and performance:

  • Safety and Concurrency: Leverage Rust's memory safety guarantees with actor-based supervised threading for secure and manageable concurrency.

  • High Throughput: Handle high message volumes efficiently with support for batch processing in actors.

  • Rapid Prototyping: Use Graphviz DOT files to model your actor graph, then generate Rust code to focus on your business logic.

  • Visibility and Observability: Built-in telemetry provides real-time insights, enabling you to identify and resolve bottlenecks swiftly.

    Telemetry Visualization Example An animated GIF demonstrating real-time telemetry visualization in action.

    Complex Graph Snapshot A snapshot of a more complex example.

Key Features

Built-in Prometheus Integration

  • Metrics Collection: Automatically gather performance metrics without additional setup.
  • Customizable Metrics: Extend and customize metrics to suit your application's needs.

Comprehensive Testing Framework

  • Actor Unit Testing: Write tests for individual actors to ensure they function correctly in isolation.
  • Graph Testing: Validate the behavior of the entire actor graph under various conditions.
  • Mocking Support: Use mock actors to simulate components and external systems for thorough testing.

Flexible Actor Management

  • Async Made Easy: Simplify asynchronous operations with built-in support.
  • Thread Configuration: Assign actors to single threads or have actors share threads for greater scale.

Clean Shutdown Logic

  • Signal Handling: Respond to system signals to initiate a clean shutdown sequence.
  • Ordered Teardown: Ensure actors shut down in a controlled manner to maintain system integrity.

Getting Started

1. Define Your Actor Graph

  • Write a Graphviz DOT file with annotations to model your actor system.
  • Use clear labels to specify actor properties and relationships.

2. Generate Your Project

  • Utilize the cargo-steady-state tool to generate your Rust service project from the DOT file.
  • Focus on implementing your business logic rather than boilerplate code.

3. Implement and Test

  • Implement your actors' behavior within the generated framework.
  • Write unit tests for actors and integration tests for the actor graph.
  • Leverage the built-in testing framework for robust validation.

Roadmap

  • Enhanced Test Coverage: Increase code coverage to ensure robustness.
  • Video Tutorials: Produce educational content to help developers adopt Steady State easily.
  • Distributed Actor Support: Enable actors to communicate across network boundaries.
  • Performance Optimizations: Continuously improve processing efficiency.
  • Expanded Actor Library: Provide more pre-built actors for common patterns.

Contributing

We welcome contributions from the community. Whether it's bug reports, feature requests, or pull requests, your input is invaluable.

License

Steady State Core is open-source under the MIT License. You are free to use, modify, and distribute it under the terms of the license.

Sponsor Steady State on GitHub Today


By sponsoring Steady State, you're not just supporting a project—you're investing in the future of resilient, high-performance service development in Rust. Together, we can build solutions that keep businesses moving forward.


Feel free to reach out if you have any questions or need further assistance. Thank you for considering supporting Steady State!

Commit count: 307

cargo fmt