Hello, I need to use an API from a microservice that is implemented in another country (third-party service). I created an edge function that works well, but the latency is relatively high, especially considering that I need to make several calls to the same API quickly in a single request.
So, I have a few questions:
- Is there a tool I can use to test which IP/hostname is faster from Vercel’s regions? This way, I could determine the best location for my function to be executed.
- I am using an edge function; does the “region” option influence this? My idea is something like this: when contacting my API from my computer, the edge closest to the third-party API is used. This, although increasing my latency to the edge, reduces the waiting time because the edge can get the information more quickly. So, I am wondering if I am doing the right thing by using an edge function and not a serverless function.
Thank you!