Go 1.27 speeds up HTTP/1 connection reuse by 5x
Go 1.27 introduces significant performance improvements for HTTP/1 connection reuse, reducing request times by nearly 5 times compared to Go 1.26. The optimization addresses a long-standing issue where unread response bodies in HTTP/1 connections prevented reuse, forcing new connections for each request. The blog post explains the underlying network costs of establishing new connections, including TCP and TLS handshakes, and how these costs accumulate, especially in cross-region communications. The new version enhances connection reuse by properly handling unread bodies, eliminating the need for manual workarounds that developers previously used to mitigate this issue.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.