arendjr to RustEnglish · 3 months agoAsync Rust can be a pleasure to work with (without Send + Sync + 'static)emschwartz.meexternal-linkmessage-square8fedilinkarrow-up159arrow-down10
arrow-up159arrow-down1external-linkAsync Rust can be a pleasure to work with (without Send + Sync + 'static)emschwartz.mearendjr to RustEnglish · 3 months agomessage-square8fedilink
minus-squarealiensciencelinkfedilinkarrow-up4·3 months agoDespite using Tokio underneath, I think that Actix does NOT do work stealing and uses mostly separate threads: https://actix.rs/docs/server/#multi-threading https://docs.rs/actix-rt/latest/actix_rt/ Given this architecture, I think the article might inaccurate when it says that Actix handlers must be Send + Sync. See also: https://www.reddit.com/r/rust/comments/14cbe1u/why_does_actixwebs_handler_not_require_send/ Actix is a bit weird, but it has been around, and used in production, for a relatively long time.
Despite using Tokio underneath, I think that Actix does NOT do work stealing and uses mostly separate threads:
Given this architecture, I think the article might inaccurate when it says that Actix handlers must be Send + Sync. See also: https://www.reddit.com/r/rust/comments/14cbe1u/why_does_actixwebs_handler_not_require_send/
Actix is a bit weird, but it has been around, and used in production, for a relatively long time.