4 ms·
Browsing thru Actix guide (https://actix.rs/actix/guide/ https://actix.rs/actix/guide/), I didn't find any explanation regarding what will happen when actor(s)
by infynyxx2 8y ago
Browsing thru Actix guide (https://actix.rs/actix/guide/ https://actix.rs/actix/guide/), I didn't find any explanation regarding what will happen when actor(s) crashes or how crashes[1] are being handled?
http://wiki.c2.com/?LetItCrash http://wiki.c2.com/?LetItCrash
- fafhrd91 8y agofirst, you need to define what is crash in rust means. panic or error. in general case you can not recover from panic. in case of error, type system prevents unhanded errors in actors. you can restart actor, but that is controlled by developer action.
- lewisinc 8y agoI feel like Let It Crash and Fail Fast make a lot of sense in a dynamically typed language where, if you were to go ahead and code defensively and try to make assumptions about where your program could possible fail, you'll end up with a bunch of redundant error code and will probably have written error handling for places where the program might not have ever crashed. Rust's Result type makes sections where an error can occur pretty explicit, so I'm not sure it makes sense to follow the same methodology. I'm interested to hear what other people think.