arendjr to RustEnglish · 4 months agoAsync Rust can be a pleasure to work with (without Send + Sync + 'static)emschwartz.meexternal-linkmessage-square8fedilinkarrow-up160arrow-down10
arrow-up160arrow-down1external-linkAsync Rust can be a pleasure to work with (without Send + Sync + 'static)emschwartz.mearendjr to RustEnglish · 4 months agomessage-square8fedilink
minus-squarealiensciencelinkfedilinkarrow-up4·4 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.