This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
Optimize single thread instances #2
Labels
improvement
Makes the software better or more usable
research
Needs thinking, learning or time to be evaluated
Actix-web runs tasks in multiple threads, which forces all (mutable) shared data to be synchronized, which could slow things down (like connection pools). Given that the service should be scalable, and running multiple instances should be supported from day one, it might not be worth paying the extra cost of synchronization if we are going to have multiple processes anyway, being able to run multiple instances in multi-CPU servers to take advantage of all the cores.
The text was updated successfully, but these errors were encountered: