https://discord.cloudflare.com logo
Join Discord
Powered by
# durable-objects
  • w

    Wallacy

    09/29/2021, 2:19 PM
    Theres any plan to make that quicker? I mean, if i restrict my DO on one region (like on juristiction field, or any other form of restriction) they dont need a global lookup.
  • w

    Wallacy

    09/29/2021, 2:25 PM
    On my case, everytime the DO has been evicted i got 300ms+ on the first call and 150ms in the next one, ever without any form of initialization. Its like the information about the DO used on ifFromName is lost and need to be computed again. If i wait one minute after the last call I get this "cold start" ... And because i know that has no initialization on the constructor on that particular DO the additional time must be the ifFromName.
  • m

    matt

    09/29/2021, 3:04 PM
    @User What's the latency for a
    newUniqueId
    from the same colo you're making the requests from using
    idFromName
  • e

    Erwin

    09/29/2021, 3:06 PM
    It won't be all that possible to make
    idFromName
    any faster than it is I would imagine. You need to have some kind of global coordination to know if a name is already assigned. But
    newUniqueId
    can be much quicker..
  • h

    HardAtWork

    09/29/2021, 3:06 PM
    Do you have multiple names, or just one?
  • b

    brett

    09/29/2021, 3:06 PM
    We could, in the future, let you make a namespace that is entirely restricted to a certain region and would only need to look up in that region
  • e

    Erwin

    09/29/2021, 3:07 PM
    Fair 🙂
  • b

    brett

    09/29/2021, 3:07 PM
    It has been discussed but we have a lot of other things to do first
  • e

    Erwin

    09/29/2021, 3:07 PM
    That would actually be pretty cool.. but yeah, can't imagine that is the top concern right now
  • w

    Wallacy

    09/29/2021, 3:08 PM
    The same as for the second call using idFromName... like 150ms!
  • h

    HardAtWork

    09/29/2021, 3:08 PM
    What's the basic structure for an ID? 20 character numeric?
  • w

    Wallacy

    09/29/2021, 3:09 PM
    Multiples, one for each user, and for workspaces, and for my indexes, etc....
  • b

    brett

    09/29/2021, 3:09 PM
    256 bits / 32 bytes
  • b

    brett

    09/29/2021, 3:09 PM
    This "cold start" latency is confusing. The location of your named object should still (most likely) be in the local cache
  • b

    brett

    09/29/2021, 3:10 PM
    You can repeat this (recently)?
  • h

    HardAtWork

    09/29/2021, 3:10 PM
    So if I just passed in a hardcoded variable with 32 bytes, it would be a valid id?
  • b

    brett

    09/29/2021, 3:10 PM
    Nope
  • w

    Wallacy

    09/29/2021, 3:13 PM
    I did not tested recently, that was one month ago, but i will test that again in few hours.
  • w

    Wallacy

    09/29/2021, 4:14 PM
    Well.... Just test that again: The code: Bare DO returning a static hello world. First call: 770ms (very new DO) Second call: 176ms Subsequent calls (1s diff): ~170ms wait +60s after: 265ms Subsequent calls (1s diff): ~170ms wait +30s after: 180ms (ok, just network) Subsequent calls: ~170ms wait +420s after: 485ms Subsequent calls: ~170ms
  • j

    john.spurlock

    09/29/2021, 4:17 PM
    Seeing a bunch of 503 "The page could not be rendered due to a temporary fault." this morning, anyone else?
  • m

    mery

    09/29/2021, 4:37 PM
    for me it's this afternoon but yeah 😅 https://www.cloudflarestatus.com/incidents/fvfnlz7wbrgv
  • j

    john.spurlock

    09/29/2021, 4:38 PM
    ah, right on, thanks
  • j

    john.spurlock

    09/29/2021, 4:39 PM
    Would be cool to get Identified workers issues routed into the discord here somewhere in real time
  • b

    brett

    09/29/2021, 4:47 PM
    This seems good right?
  • b

    brett

    09/29/2021, 4:48 PM
    Ah sorry I misunderstood some of it
  • b

    brett

    09/29/2021, 4:49 PM
    Is this a client that would hold connections open like a browser, or plain curl, or what?
  • w

    Wallacy

    09/29/2021, 5:16 PM
    I just call the rest api using insomnia....
  • w

    Wallacy

    09/29/2021, 5:17 PM
    Basically, if i wait few seconds i get this "cold start"
  • b

    brett

    09/29/2021, 5:19 PM
    I've never used Insomnia, it'd be good to know if it keeps a connection open for some time. One way you could see this "cold start" is that your later requests have to establish a new connection to a local CF server, and that server probably has to establish a new connection to the colo where your DO is.
  • w

    Wallacy

    09/29/2021, 5:23 PM
    Its just like a curl, the connections is closed after the request. I got similar values using the curl.
1...189190191...567Latest