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

    ItsWendell

    08/27/2021, 4:41 PM
    Good questions, artillery is a nice tool to test this type of stuff, we recently ran our first simple concurrency test with it, probably using this more and more in the next few weeks.
  • r

    raRaRa

    08/27/2021, 5:58 PM
    Ok thanks. I'm really hoping that messages are arriving in the order they are sent. Otherwise I'll need to add some timestamp/index prefix ๐Ÿ˜ฆ
  • i

    ItsWendell

    08/27/2021, 6:10 PM
    I think always a good practice if that's important for your game state, but adds indeed some complication
  • r

    raRaRa

    08/27/2021, 8:31 PM
    Based on my testing, they always seem to arrive in the correct order, which is really good. The bug I encountered was an issue on my end ๐Ÿ™‚
  • i

    ItsWendell

    08/28/2021, 12:23 PM
    Did you do some testing on payload size?
  • r

    raRaRa

    08/28/2021, 1:05 PM
    I haven't tested that yet as I haven't encountered any limits so far
  • a

    albert

    08/28/2021, 1:35 PM
    From my testing, a bundled Worker throws an error if it receives a message 1 MiB or larger and does nothing (timeouts?) if trying to send a message larger than 1 MiB.
  • r

    raRaRa

    08/28/2021, 1:40 PM
    Nice, 1MiB is large, more than enough!
  • a

    albert

    08/28/2021, 1:44 PM
    Client -> Worker size limit seems to be
    1 MiB - 1 B
    for some reason - not
    1 MiB
    like Worker -> Client ๐Ÿ™ƒ
  • r

    raRaRa

    08/28/2021, 1:44 PM
    Just for clarification, I'm talking about Client WS -> Durable Object
  • r

    raRaRa

    08/28/2021, 1:44 PM
    Maybe the same limit occurs there
  • a

    albert

    08/28/2021, 1:45 PM
    I tested with Bundled Workers, but I'd imagine it's the same for Durable Objects
  • g

    gzalo

    08/28/2021, 9:12 PM
    Does anyone know if they announced any estimated dates for releasing DO to all customers? Or whether they will eventually add a cheaper workers subscription plan (e.g, $1/mo) with smaller limits?
  • e

    Erisa | Support Engineer

    08/28/2021, 9:31 PM
    as of right now, there have been no announcements of estimated dates for release of DO or for any kind of cheaper subscription.
  • e

    Erisa | Support Engineer

    08/28/2021, 9:31 PM
    cloudflare generally doesnt like to do ETAs so i wouldnt get my hopes up for one
  • g

    gzalo

    08/28/2021, 10:21 PM
    Okay, thanks @User !
  • a

    aa

    08/29/2021, 10:00 PM
    What's the easiest way people have found to iterate and debug workers with durable objects. The build/deploy/wait/test loop is just long enough that I keep getting distracted.
  • e

    eidam | SuperSaaS

    08/29/2021, 10:02 PM
    I started using https://miniflare.dev, it has a support for durable objects (and practically everything workers related)
  • a

    aa

    08/29/2021, 10:02 PM
    wow! somebody did this outside of cf? impressive.
  • a

    aa

    08/29/2021, 10:02 PM
    will try it, thanks for pointer.
  • h

    HardAtWork

    08/29/2021, 10:02 PM
    Well, they work for CF now...
  • a

    aa

    08/29/2021, 10:03 PM
    makes sense ๐Ÿ™‚
  • h

    HardAtWork

    08/29/2021, 10:03 PM
    And for a hosted solution, you should be able to use @User's https://workers.run
  • e

    eidam | SuperSaaS

    08/29/2021, 10:11 PM
    oh, thank you, but I am afraid they would spend more time debugging workers.run than the DOs itself ๐Ÿ˜…
  • d

    Deleted User

    08/29/2021, 10:14 PM
    What are durable objects
  • h

    HardAtWork

    08/29/2021, 10:16 PM
    Durable Objects are a way of storing Global State in Workers, in a way that there is only one version of each variable at any time, anywhere.
  • d

    Deleted User

    08/29/2021, 10:16 PM
    Ooh interesting
  • e

    eidam | SuperSaaS

    08/29/2021, 10:18 PM
    and I saw in here that some cool resources to get you started quickly are coming soon, so stay tuned!
  • d

    Deleted User

    08/29/2021, 10:25 PM
    Thanks for letting me know! So how exactly does this differ from KV?
  • e

    eidam | SuperSaaS

    08/29/2021, 10:28 PM
    I am heading offline now, but there are some good resources about them ๐Ÿ™‚ Happy to chat next week though! https://blog.cloudflare.com/introducing-workers-durable-objects https://blog.cloudflare.com/building-waiting-room-on-workers-and-durable-objects https://developers.cloudflare.com/workers/learning/using-durable-objects
1...167168169...567Latest