2 ms·
> How is runtime fault-tolerance achieved? An actor is: 1. A lightproc, which, per my understanding, are async-spawned threads returning (optional?) Futures [
by ignoramous 7y ago
> How is runtime fault-tolerance achieved?
An actor is:
1. A lightproc, which, per my understanding, are async-spawned threads returning (optional?) Futures [0].
2. A ProcHandle [1] that lets you define process-state (like pid), control process-exec (like cancel, suspend?), listen on progress of a given lightproc that is run by BastianExecutors [2], whilst the message passing / supervisor semantics is handled by Bastion [3].
https://akka.io/ https://akka.io/ on JVM would be a better comparison to this than BEAM's implementation of actors, I think.
[0] https://github.com/bastion-rs/bastion/blob/2d9dc705962f30fbf168cf58ebd645e6d9fc2a1d/lightproc/src/lightproc.rs#L134 https://github.com/bastion-rs/bastion/blob/2d9dc705962f30fbf...
[1] https://github.com/bastion-rs/bastion/blob/2d9dc705962f30fbf168cf58ebd645e6d9fc2a1d/lightproc/src/proc_handle.rs#L15 https://github.com/bastion-rs/bastion/blob/2d9dc705962f30fbf...
[2] https://github.com/bastion-rs/bastion/blob/2d9dc705962f30fbf168cf58ebd645e6d9fc2a1d/bastion-executor/src/run.rs#L36 https://github.com/bastion-rs/bastion/blob/2d9dc705962f30fbf...
[3] https://docs.rs/bastion/0.3.4/bastion/struct.Bastion.html https://docs.rs/bastion/0.3.4/bastion/struct.Bastion.html