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

    Vanessa🦩

    08/03/2021, 11:08 PM
    Very good writeup about an exciting design. Can't wait to test. Just bogged down with other stuff 😅
  • a

    albert

    08/04/2021, 9:15 AM
    Does anyone have numbers on roundtrip time to Durable Objects living on the other side of the world?
  • k

    Kuririn

    08/04/2021, 1:50 PM
    what is the difference between idFromName() and idFromString() and how long value (max. length) I could put there?
  • k

    kenton

    08/04/2021, 1:55 PM
    idFromString()
    specifically parses the output of
    id.toString()
    . It won't work with any string that wasn't specifically created by stringifying an ID from the same namespace.
    idFromName()
    takes any string you want and returns a unique ID corresponding to it.
  • k

    kenton

    08/04/2021, 1:56 PM
    in retrospect, the naming could have been better.
  • k

    Kuririn

    08/04/2021, 2:05 PM
    thanks!
  • a

    albert

    08/04/2021, 2:27 PM
    idFromHex()
    😛
  • v

    Vanessa🦩

    08/04/2021, 3:48 PM
    LAX to KIX is ~ 130 ms, LAX to FRA ~170 Where are you? I can send you a link to try
  • a

    albert

    08/04/2021, 3:52 PM
    I'm in Denmark, so I hit CPH by default. Though, due to VPN on my PC, I mostly connect to AMS.
  • a

    albert

    08/04/2021, 3:54 PM
    My latency to CPH is ~10 ms and AMS is ~25 ms.
  • v

    Vanessa🦩

    08/04/2021, 3:59 PM
    Try these for latency testing:
    US
    https://croquet.io/cloudflare/?EDHEob1TnShyWTdrRoe-GCIdl4E9x7Zz6qqJg7WFnpS `JP`https://croquet.io/cloudflare/?3honQOd0yTj4F0-2-oaIFpP4D4n4S-9S3joiVfLY4nm `EU`https://croquet.io/cloudflare/?ihlwFIj1Z9-BtUfoNAEzD0ItTEZl1qsZrpR8n_BNx2V Click "test latency" a few times, and maybe reload to make a new request.
  • v

    Vanessa🦩

    08/04/2021, 4:04 PM
    Looks like your VPN is slowing down things maybe? FRA should be a lot less.
  • a

    albert

    08/04/2021, 4:05 PM
    Oh, I'm on a mobile connection right now - that's definitely why. Will test it in ~30 min when I'm home 🙂
  • v

    Vanessa🦩

    08/04/2021, 4:05 PM
    Oh that is a problem too of course. In LA I sometimes get single digit latencies 😍 (on fibre at home)
  • a

    albert

    08/04/2021, 4:06 PM
    > on fibre at home I "only" have 1000/500 over COAX (DOCSIS 3.1) :/
  • a

    albert

    08/04/2021, 4:07 PM
    Speeds are great, but latency doesn't get lower than ~10 ms to anywhere
  • a

    albert

    08/04/2021, 4:15 PM
    @User I launched the links on my PC now (with VPN)
  • v

    Vanessa🦩

    08/04/2021, 4:16 PM
    So that's the connection from Amsterdam then - can you try without VPN? 50 ms to FRA still seems like a lot
  • a

    albert

    08/04/2021, 4:18 PM
    Done 🙂
  • v

    Vanessa🦩

    08/04/2021, 4:18 PM
    32ms, that looks better
  • a

    albert

    08/04/2021, 4:19 PM
    So 32 ms is roundtime from my PC to FRA via CPH?
  • v

    Vanessa🦩

    08/04/2021, 4:20 PM
    yes
  • v

    Vanessa🦩

    08/04/2021, 4:20 PM
    the worker is in CPH and the DO in FRA
  • a

    albert

    08/04/2021, 4:22 PM
    Doesn't 50 ms seem seem alright then, if it's from my PC -> Amsterdam (VPN) -> CPH (Worker) -> FRA (DO)?
  • v

    Vanessa🦩

    08/04/2021, 4:25 PM
    I guess it is – I am spoiled by having the worker right here next to me 😅
  • a

    albert

    08/04/2021, 4:26 PM
    I don't think there's anything to do about the ~10 ms latency added just to get out of the house 😛
  • a

    albert

    08/04/2021, 4:26 PM
    this is COAX after all
  • a

    albert

    08/04/2021, 4:28 PM
    Anyways, thanks a lot for the help 🙂
  • v

    Vanessa🦩

    08/04/2021, 4:28 PM
    You're welcome 😊
  • v

    Vanessa🦩

    08/04/2021, 4:49 PM
    Just to correct this - your connection from Amsterdam did not go via CPH. There is a colo in AMS, so that’s where the worker was.
1...137138139...567Latest