microsoft / reverse-proxy

A toolkit for developing high-performance HTTP reverse proxy applications.
https://microsoft.github.io/reverse-proxy
MIT License
8.43k stars 828 forks source link

Slow content download on requests proxied with YARP behind load balancer #2541

Closed jbendson closed 1 week ago

jbendson commented 2 months ago

Describe the bug

Slow content download on requests proxied with YARP behind load balancer. Likely this is config related but looking for some insight what may be happening here.

Here's how the issue looks in devtools: With Load Balancer:

with-lb

Without Load Balancer:

without-lb

Details when the issue does/does not occur:

To Reproduce

Further technical details

adityamandaleeka commented 1 month ago

Issue only happens on requests from chromium based browsers (Edge, Chrome). Firefox, Postman, etc. don't show the issue.

This clue is quite interesting. It might be useful to look at whether the traffic is different somehow (e.g. HTTP/2 vs HTTP/1.1). You might find the browser dev tools to be useful for this, or perhaps something like Wireshark.

karelz commented 1 week ago

Triage: Not enough info to make it actionable. Closing. Feel free to reopen once there are more details.