Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
From your verbatim,
- From your region, you find that,
- ContainerApp in US has a response time of 400 ms
- ContainerApp in Germany has a response time of 100 ms
- So, from the same region, you try to access the AFD which has both of these or Origins
- And you find that 80% of the requests is being forwarded to ContainerApp in US (one with a higher response time)
From Traffic routing methods to origin
The 'closest' origin isn't necessarily closest as measured by geographic distance. Instead, Azure Front Door determines the closest origin by measuring network latency
- Response time is not same as latency, as health probes may probe a different page than the origin actually serves or health probes may use HEAD Request instead of GET request.
- You say you made 100 calls, can you increase the sample size and give it a try - say 1000 to 2000 requests?
- Also, you mentioned accessing the container apps from both AFD and directly have the same latency (400 ms for US and 100 ms for Germany)
- Is this correct?
- Introducing the AFD did not improve the response time?
Cheers,
Kapil