Re:Pingora, the proxy that connects Cloudflare to the Internet
by totallyunknown on Thursday September 15, 2022 @03:35AM
(#32848439)
We can't use sendfile since all the traffic is HTTPS. Sendfile can only be used if we can use KTLS. Internally we have some kind of cache hierarchy for video objects, these files are transferred out via Sendfile, but the performance gain here is negligible.
Re:Pingora, the proxy that connects Cloudflare to the Internet
by costela on Thursday September 15, 2022 @03:48AM
(#32848578)
and yes: the proxy does have some intelligence around "just" forwarding requests. Mostly caching related, but also some upstream routing decisions and a ton of observability.
1. https://man7.org/linux/man-pages/man2/sendfile.2.html