A HTTP URI path prefix mapping is done in nginx, in the same process, no context switching, no buffering, I think it is even done without any allocation.
Of course it doesn't matter, basically logging takes more resources than whatever routing is needed. (Especially because even if it requires running a Cloudflare worker it's just a NodeJS V8 isolate, very lightweight. As far as I know. But I have no idea of its costs.)
But AWS Lambdas are pretty pricey compared to a free nginx rewrite.
Re:You don't need that CORS request
by dragonwriter on Monday January 03, 2022 @10:11AM
(#29781487)
> But AWS Lambdas are pretty pricey
Kind of why CloudFront Functions we're invented for this use case, AWS Lambda@Edge is the more general purpose edge computing facility.
What difference are you alluding to?