Skip to content

Commit

Permalink
clarify blog post paragraph about latency
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 19, 2024
1 parent 3971aac commit 088612e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blog/_posts/2024-09-17-0.20-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ async fn write_bytes_chunked(
```

Now the bytes should transfer much more smoothly,
but we've introduced a new problem: latency.
but we've potentially introduced a new problem: latency.
After sending each `ByteSink.write()` request,
we're waiting for the server to send back its response
before we start the next request.
That will likely slow things down considerably!
Depending on the amount of time it takes for messages
to travel between the client and server,
waiting like that could slow things down considerably!

Here's a naive, bad way to avoid such latency:

Expand Down

0 comments on commit 088612e

Please sign in to comment.