kabuki icon indicating copy to clipboard operation
kabuki copied to clipboard

Erlang-style fault tolerance

Open dlight opened this issue 8 years ago • 1 comments

Hi, this repository was linked from this thread. It looks cool!

I'm not sure if this is the right place to ask, but: I wonder if one could implement supervision trees (or a similar mechanism) on top of kabuki, using catch_unwind. On Reddit there was a concern that this could bring down other tasks running on the same thread:

[–]bjzaba 3 points 5 months ago

I guess the trouble is that bringing down and restarting a Rust thread is a much bigger deal than in Erlang. I like the idea of https://github.com/carllerche/kabuki, but I would be concerned about whether an actor could affect its peers running on the same thread pool... thoughts?

I guess this is more a question about Tokio than Kabuki itself though.

dlight avatar Aug 16 '17 22:08 dlight

Using catch_unwind would work great. In fact, I would expect that the thread pool executor already does this.

carllerche avatar Aug 17 '17 02:08 carllerche