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