DanTheGoodman
01/28/2023, 1:54 AMidFromName
? I know it has to do a "round the world" lookup which sounds expensive, especially when I could be doing up to 500 of them concurrently in my app im building now lol (plz ping)kenton
01/28/2023, 3:37 AMidFromName()
call itself completes instantly. However, when you attempt to send a message to the object, a round-the-world lookup will be needed to figure out its location the first time. This is only needed the first time the object is contacted from a particular colo, then its location should be cached. That initial lookup depends on where you are but will probably take in the low hundreds of milliseconds.GuillaumeLakano
01/28/2023, 9:37 AMDeleted User
01/28/2023, 10:58 AMGuillaumeLakano
01/28/2023, 11:19 AMDanTheGoodman
01/28/2023, 2:00 PMGuillaumeLakano
01/28/2023, 7:49 PMHardAtWork
01/28/2023, 7:50 PMGuillaumeLakano
01/28/2023, 7:51 PMSZAGLAM
01/29/2023, 1:24 AMSZAGLAM
01/29/2023, 3:56 AMjson
{
"cf": {
"continent": "AS",
"colo": "ADB"
}
}
Chaika
01/29/2023, 4:05 AMUnsmart | Tech debt
01/29/2023, 4:07 AMSZAGLAM
01/29/2023, 4:08 AMUnsmart | Tech debt
01/29/2023, 4:08 AMChaika
01/29/2023, 4:09 AMUnsmart | Tech debt
01/29/2023, 4:09 AMSZAGLAM
01/29/2023, 4:10 AMjson
"tlsVersion": "TLSv1.3",
"colo": "ADB",
"timezone": "Europe/Istanbul",
"edgeRequestKeepAliveStatus": 1,
"requestPriority": "weight=16;exclusive=0;group=0;group-weight=0",
"asOrganization": "Turkcell",
"httpProtocol": "HTTP/2"
Unsmart | Tech debt
01/29/2023, 4:11 AMChaika
01/29/2023, 4:13 AMUnsmart | Tech debt
01/29/2023, 4:15 AMUnsmart | Tech debt
01/29/2023, 4:16 AMSZAGLAM
01/29/2023, 4:17 AMChaika
01/29/2023, 4:19 AMjavascript
var colo = await (await fetch("https://www.cloudflare.com/cdn-cgi/trace")).text()).match(/^colo=(.+)/m) as string[])[1]
(Taken from )Chaika
01/29/2023, 4:20 AMHardAtWork
01/29/2023, 11:09 AMTom Sherman
01/29/2023, 6:46 PM