TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you achieve high concurrency with your Python services?

4 点作者 arrayjumper大约 5 年前
We have a bunch of python services in flask and falcon which we run using gunicorn with sync workers. Most of our services are I&#x2F;O bound. We want to be able to handle bursty loads of upto 50-60 requests per second in each service.<p>We have been using the 2x + 1 thumb rule to decide the number of workers for gunicorn but to achieve the throughput we want with sync workers we&#x27;d need to scale the amount of cpu which leads to inefficient cpu utilization.<p>One option we are trying is gevent but that has its own issues with grpc which we are looking into. What other things do people do for this? AsyncIO? I know there&#x27;s a bunch of new ASGI frameworks that have come up. What has been your experience with these in production?

暂无评论

暂无评论