TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What are the benefits of using Rust async HTTP clients?

2 pointsby timhiginsalmost 5 years ago
Generally it seems like async only has a real benefit when there are many connections.<p>Is there a scenario where using an HTTP client implemented with Rust&#x27;s async features gives a substantive performance benefit?

1 comment

halffullbrainalmost 5 years ago
That&#x27;s correct. With many concurrent connections, you save memory (from thread stacks) and context swiches (since you don&#x27;t need to switch thread to process each socket).<p>If all you want is a single request (and you have wait for results to continue work), you don&#x27;t gain anything by going async.
评论 #23744785 未加载