arendjr@programming.dev to Rust@programming.devEnglish · 3 months agoAsync Rust can be a pleasure to work with (without Send + Sync + 'static)emschwartz.meexternal-linkmessage-square8fedilinkarrow-up158arrow-down10
arrow-up158arrow-down1external-linkAsync Rust can be a pleasure to work with (without Send + Sync + 'static)emschwartz.mearendjr@programming.dev to Rust@programming.devEnglish · 3 months agomessage-square8fedilink
minus-squarealienscience@programming.devlinkfedilinkarrow-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.