- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
🎨Webserver: use uvloop and aiohttp UV loop worker to increase performances #7663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎨Webserver: use uvloop and aiohttp UV loop worker to increase performances #7663
Conversation
          
 | 
    
          Codecov ReportAll modified and coverable lines are covered by tests ✅ 
 Additional details and impacted files@@            Coverage Diff             @@
##           master    #7663      +/-   ##
==========================================
- Coverage   87.71%   86.44%   -1.27%     
==========================================
  Files        1792      530    -1262     
  Lines       69182    23784   -45398     
  Branches     1136        0    -1136     
==========================================
- Hits        60685    20561   -40124     
+ Misses       8187     3223    -4964     
+ Partials      310        0     -310     
 
 Continue to review full report in Codecov by Sentry. 
 🚀 New features to boost your workflow:
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! thanks 👍



What do these changes do?
After testing it looks like the

uvloop-powered aiohttp gunicorn worker performs much better than the standard one.note that the response time on this example project is notably improved.
uvloop is a drop-in replacement for the standard asyncio event loop (note that fastapi already uses it by default)
Related issue/s
How to test
Dev-ops