JasonThon / lightflus

A Lightweight, Cloud-Native Stateful Distributed Dataflow Engine
Apache License 2.0
99 stars 9 forks source link

actix_web is a single thread runtime, is there any plan to multiple threads like axum? #19

Closed heliping closed 1 year ago

heliping commented 1 year ago

之前碰到过线程的问题,转了一圈发现actix是单线程的框架。 actix issue 的答复如下:

Since you are using atcix::main macro.
 It means you are running on a single thread runtime. 
calling tokio::task::spawn would not make your task run on other threads.