Slow cold start and latency for hello world code

Hi, I have a simple worker, deployed recently. The content is a simple hello world provided by the Cloudflare dashboard, the code is the below:
export default {
async fetch(request, env, ctx) {
return new Response('Hello World!');
},
};
export default {
async fetch(request, env, ctx) {
return new Response('Hello World!');
},
};
The worker code was deployed direct by the Cloudflare Dashboard UI, but after this, I see a request time of 180 - 380ms, It's normal? How can I fix it? Some details: Worker URL: https://worker-spring-wildflower-8be3.nuinalp-ltda.workers.dev Plan: Paid (New standard price) CF-Ray Response: 820d6602edec2206-MIA My region: South America (Sao Paulo) Average response time: 130ms - 380ms
5 Replies
kian
kian13mo ago
MIA means you're being taken to a colo in Miami rather than something close to you (like GRU)
patrickalima98
patrickalima98OP13mo ago
Is there any specific reason for this? How can I fix it? Or is it a problem with Cloudflare?
zegevlier
zegevlier13mo ago
?anycast
Flare
Flare13mo ago
Take a look here to see why the Cloudflare datacenter you are routed towards isn't always the closest geographically: https://www.cloudflare.com/en-gb/learning/cdn/glossary/anycast-network/
Cloudflare
What is Anycast? | How does Anycast work? | Cloudflare
Anycast is a network addressing and routing method in which incoming requests can be routed to a variety of different locations. Learn how Anycast works.
patrickalima98
patrickalima98OP13mo ago
UPDATE: Creating a CNAME on my main domain and pointing it to my Worker, it is now redirecting to GRU and delivering a response rate of 26.4ms
Want results from more Discord servers?
Add your server