Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Optimize single thread instances #2

Open
llucax opened this issue Dec 18, 2020 · 0 comments
Open

Optimize single thread instances #2

llucax opened this issue Dec 18, 2020 · 0 comments
Labels
improvement Makes the software better or more usable research Needs thinking, learning or time to be evaluated

Comments

@llucax
Copy link
Member

llucax commented Dec 18, 2020

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.

@llucax llucax added improvement Makes the software better or more usable research Needs thinking, learning or time to be evaluated labels Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement Makes the software better or more usable research Needs thinking, learning or time to be evaluated
Projects
None yet
Development

No branches or pull requests

1 participant