News for hackers. Stuff that matters.
Re:You don't need that CORS request by scubbo on Monday January 03, 2022 @07:54AM (#29780273)
Not really, no. In fact the only significant difference (that the Lambda@Edge function is run at the closest geolocation to the client, rather than on the origin server) is an advantage to Lambda@Edge.

What difference are you alluding to?

Re:You don't need that CORS request by pas on Monday January 03, 2022 @08:46AM (#29780704)
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.