PowerShell / Polaris

A cross-platform, minimalist web framework for PowerShell
https://powershell.github.io/Polaris/
MIT License
512 stars 115 forks source link

[Question] how does Polaris Scales? #191

Open Stephanevg opened 5 years ago

Stephanevg commented 5 years ago

Hi guys,

I was wondering if there were any tests (with numbers) about how well Polaris can scale?

Background of my question

If I want to introduce an open source project like Polaris into a project at my company, I need to have some kind of proof that it the module will support scaling. do you guys have anything like that by any chance?

TylerLeonhardt commented 5 years ago

Nothing on paper. Keep in mind Polaris can only handle one request at a time. Due to its use of a single runspace.

It was an early design decision to replicate expressjs's design pattern but it seems like more folks want something that can handle multiple requests at the same time.

TylerLeonhardt commented 5 years ago

See https://github.com/PowerShell/Polaris/issues/127

Tiberriver256 commented 5 years ago

I would treat it the same as if you were trying to scale node or php-fpm and use a reverse proxy like nginx or IIS to handle load balancing between several instances or something like Azure App Service that would handle scaling Polaris for you.