I use Cloudflare Worker that for some requests synchronously invokes Lambda function using AWS API (aws4fetch).
Implementation is working, but compared to other options for invoking Lambda (ALB / Api Gateway…) there is extra 200-300ms latency measured end-to-end making request from residential network.
There is only one fetch request to AWS API per Worker request.
Should I expect connection to AWS API to stay open (eg. “keep-alive”) for the next request?
Any ideas for additional optimizations I could add to the fetch call?