All Projects → bastion-rs → Bastion

bastion-rs / Bastion

Licence: other
Highly-available Distributed Fault-tolerant Runtime

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to Bastion

traffic
Massively real-time traffic streaming application
Stars: ✭ 25 (-98.93%)
Mutual labels:  distributed-systems, concurrency, distributed
Thespian
Python Actor concurrency library
Stars: ✭ 220 (-90.57%)
Mutual labels:  concurrency, distributed-systems, fault-tolerance
Actix
Actor framework for Rust.
Stars: ✭ 6,764 (+189.93%)
Mutual labels:  hacktoberfest, concurrency, actor
elfo
Your next actor system
Stars: ✭ 38 (-98.37%)
Mutual labels:  asynchronous, distributed, actor
Cloudi
A Cloud at the lowest level!
Stars: ✭ 352 (-84.91%)
Mutual labels:  concurrency, distributed-systems, fault-tolerance
Hazelcast
Open-source distributed computation and storage platform
Stars: ✭ 4,662 (+99.83%)
Mutual labels:  hacktoberfest, distributed, distributed-systems
Akka
Build highly concurrent, distributed, and resilient message-driven applications on the JVM
Stars: ✭ 11,938 (+411.7%)
Mutual labels:  hacktoberfest, concurrency, distributed-systems
Labgrid
embedded systems control library for development, testing and installation
Stars: ✭ 124 (-94.68%)
Mutual labels:  hacktoberfest, distributed
Pokeapi Js Wrapper
PokeAPI browser wrapper, fully async with built-in cache
Stars: ✭ 129 (-94.47%)
Mutual labels:  hacktoberfest, asynchronous
Tascalate Concurrent
Implementation of blocking (IO-Bound) cancellable java.util.concurrent.CompletionStage and related extensions to java.util.concurrent.ExecutorService-s
Stars: ✭ 144 (-93.83%)
Mutual labels:  asynchronous, concurrency
Fluentdispatch
🌊 .NET Standard 2.1 framework which makes easy to scaffold distributed systems and dispatch incoming load into units of work in a deterministic way.
Stars: ✭ 152 (-93.48%)
Mutual labels:  distributed-systems, distributed
Vertex
Vertex is a distributed, ultimately consistent, event traceable cross platform framework based on Orleans, which is used to build high-performance, high throughput, low latency, scalable distributed applications
Stars: ✭ 117 (-94.98%)
Mutual labels:  actor, distributed
Sandglass
Sandglass is a distributed, horizontally scalable, persistent, time sorted message queue.
Stars: ✭ 1,531 (-34.38%)
Mutual labels:  distributed-systems, distributed
Hpx
The C++ Standard Library for Parallelism and Concurrency
Stars: ✭ 1,805 (-22.63%)
Mutual labels:  concurrency, distributed
Drone
CLI utility for Drone, an Embedded Operating System.
Stars: ✭ 114 (-95.11%)
Mutual labels:  asynchronous, concurrency
Jlitespider
A lite distributed Java spider framework :-)
Stars: ✭ 151 (-93.53%)
Mutual labels:  distributed-systems, distributed
Async Backplane
Simple, Erlang-inspired fault-tolerance framework for Rust Futures.
Stars: ✭ 113 (-95.16%)
Mutual labels:  asynchronous, fault-tolerance
Mysterium Vpn
DEPRECATED version of Mysterium dVPN app. Please look at mysterium-vpn-desktop instead.
Stars: ✭ 149 (-93.61%)
Mutual labels:  distributed-systems, distributed
Ignareo Isml Auto Voter
Ignareo the Carillon, a web spider template of ultimate concurrency built for leprechauns. Carillons as the best web spiders; Long live the golden years of leprechauns!
Stars: ✭ 154 (-93.4%)
Mutual labels:  concurrency, distributed
Diztl
Share, discover & download files in your network 💥
Stars: ✭ 162 (-93.06%)
Mutual labels:  distributed-systems, distributed


Latest Release Crates.io License Crates.io
Doc [Bastion] Documentation (Bastion) Downloads Crates.io
Doc [Bastion Executor] Documentation (Bastion Executor) Discord
Doc [LightProc] Documentation (LightProc) Build Status Build Status

Highly-available Distributed Fault-tolerant Runtime

Bastion is a highly-available, fault-tolerant runtime system with dynamic, dispatch-oriented, lightweight process model. It supplies actor-model-like concurrency with a lightweight process implementation and utilizes all of the system resources efficiently guaranteeing of at-most-once message delivery.


Usage

Bastion comes with a default one-for-one strategy root supervisor. You can use this to launch automatically supervised tasks.

Get Started

Include bastion to your project with:

bastion = "0.4"

Documentation

Official documentation is hosted on docs.rs.

Examples

Check the getting started example in bastion/examples

Examples cover possible use cases of the crate.

Features

  • Message-based communication makes this project a lean mesh of actor system.
    • Without web servers, weird shenanigans, forced trait implementations, and static dispatch.
  • Runtime fault-tolerance makes it a good candidate for distributed systems.
    • If you want the smell of Erlang and the powerful aspects of Rust. That's it!
  • Completely asynchronous runtime with NUMA-aware and cache-affine SMP executor.
    • Exploiting hardware locality wherever it is possible. It is designed for servers.
  • Supervision system makes it easy to manage lifecycles.
    • Kill your application in certain condition or restart you subprocesses whenever a certain condition is met.
  • Automatic member discovery, cluster formation and custom message passing between cluster members.
    • Using zeroconf or not, launch your bastion cluster from everywhere, with a single actor block.
  • Proactive IO system which doesn't depend on anything other than futures.
    • Bastion's proactive IO has scatter/gather operations, io_uring support and much more...

Guarantees

  • At most once delivery for all messages.
  • Completely asynchronous system design.
  • Asynchronous program boundaries with fort.
  • Dynamic supervision of supervisors (adding a subtree later during the execution)
  • Lifecycle management both at futures and lightproc layers.
  • Faster middleware development.
  • Fault tolerance above all.

Why Bastion?

If you answer any of the questions below with yes, then Bastion is just for you:

  • Do I want proactive IO?
  • Do I need fault-tolerance in my project?
  • Do I hate to implement weird Actor traits?
  • I shouldn't need a webserver to run an actor system, right?
  • Do I want to make my existing code unbreakable?
  • Do I have some trust issues with orchestration systems?
  • Do I want to implement my own application lifecycle?

Bastion Ecosystem

Bastion Ecosystem is here to provide you a way to customize it. If you don't need to, or if you are a newcomers, you can install and use Bastion without knowing how everything works under the hood. We hope to find you on this section soon.

Nuclei

Nuclei is proactive IO system that can be independently used without executor restriction. It is also powering Bastion's IO system. You can learn more about Nuclei here, check out Nuclei's repo for more sophisticated use cases.

LightProc

LightProc is Lightweight Process abstraction for Rust.

It uses futures with lifecycle callbacks to implement Erlang like processes and contains basic pid to identify processes. All panics inside futures are propagated to upper layers.

Bastion Executor

Bastion Executor is NUMA-aware SMP based Fault-tolerant Executor, highly-available and async communication oriented.

It's independent of it's framework implementation. It uses lightproc to encapsulate and provide fault-tolerance to your future based workloads. You can use your futures with lightproc to run your workloads on Bastion Executor without the need to have framework.

Agnostik

Agnostik is a layer between your application and the executor for your async stuff. It lets you switch the executors smooth and easy without having to change your applications code. Valid features are runtime_bastion (default), runtime_tokio, runtime_asyncstd and runtime_nostd (coming soon).

Architecture of the Runtime

Runtime is structured by the user. Only root supervision comes in batteries-included fashion. Worker code, worker group redundancy, supervisors and their supervision strategies are defined by the user.

Supervision strategies define how child actor failures are handled, how often a child can fail, and how long to wait before a child actor is recreated. As the name suggests, One-For-One strategy means the supervision strategy is applied only to the failed child. All-For-One strategy means that the supervision strategy is applied to all the actor siblings as well. One-for-one supervision is used at the root supervisor, while child groups may have different strategies like rest-for-one or one-for-all.

Bastion Architecture

Community

Getting Help

Please head to our Discord or use StackOverflow

Discussion and Development

We use Discord for development discussions. Also please don't hesitate to open issues on GitHub ask for features, report bugs, comment on design and more! More interaction and more ideas are better!

Contributing to Bastion Open Source Helpers

All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.

A detailed overview on how to contribute can be found in the CONTRIBUTING guide on GitHub.

License

Licensed under either of

at your option.

FOSSA Status

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].