question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Production server for best performance

See original GitHub issue

Which gives the best performance in production? For deploying in production we use docker. And what better use gunicorn -w or uvicorn --workers?

In uvicorn docs recommends use gunicorn (https://www.uvicorn.org/#running-with-gunicorn):

This allows you to increase or decrease the number of worker processes on the fly, restart worker processes gracefully, or perform server upgrades without downtime.

But i think it not actual when using docker.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Kludexcommented, Dec 11, 2020

It’s recommended by uvicorn itself: https://www.uvicorn.org/deployment/#using-a-process-manager

But talking about numbers (performance), I didn’t find any comparison between those…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building High-Performance Application Servers - TeskaLabs
A production-grade application server has to deal with the bandwidth management particularly gateway-type of servers that sit between networks with different ...
Read more >
Server Performance Guide: Key Metrics and How to Optimize
This post talks about server performance metrics and how to optimize them, and addresses how monitoring helps improve server performance.
Read more >
5 Ways to Improve your Production Web Application Server ...
5 Ways to Improve your Production Web Application Server Setup · Server Optimization · Backups · Logging · Conceptual · Load Balancing ·...
Read more >
Performance Best Practices Using Express in Production
Use gzip compression; Don't use synchronous functions; Do logging correctly; Handle exceptions properly. Things to do in your environment / setup (the ops...
Read more >
10 Best Server Monitoring Tools & Software [2022 Review]
Of all the server performance tools discussed in this article, Sematext is an all-around winner for any enterprise monitoring needs—whether for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found