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

    vans163

    05/08/2021, 1:35 PM
    let me try wrapping the broadcast in try/catch actually
  • d

    Deleted User

    05/08/2021, 3:04 PM
    isn't 30 seconds the timeout? which means something is going wrong - are you never sending a response back from the DO?
  • a

    albert-zhao

    05/08/2021, 3:35 PM
    Yeah not sure what's going on, will dig with the team on Monday. Thanks for reporting @User and tagging me @User ๐Ÿ™‚
  • g

    Gavin

    05/08/2021, 4:30 PM
    as far as i can see, i'm sending a response back. sometimes it's fine and sometimes it takes a long time
  • c

    captain

    05/08/2021, 5:26 PM
    I am going to dive into durable objects...however i have a small suggestion: change name from "durable objects" to "durable storage objects" or to "durable low latency custom storage objects" ...for some reason starting out was having trouble grasping the concept when first diving into the cloudflare world, but if it was labeled "durable storage objects" with a small explaination stating, "instead of storing data in KV worker storage" you can create your own KV storage system with faster latency using "Durable Storage Objects" ...just an idea!
  • c

    captain

    05/08/2021, 5:28 PM
    carry on
  • b

    blauwberry

    05/09/2021, 10:44 AM
    Been reading the docs and DOs might seem a good solution for a webpage editor we are building (with collab functionality). We are trying to skip the OT/CDRT approach. Is a DO fit for this purpose. Could you connect the vue/react state to a DO? The chat app shows a chatroom where new messages are added to an object. But is DO a good option for json objects that are being updated by multiple people at once? Is it possible to only push and sync mutations or do you need to update the complete object when data changes? Thank you.
  • e

    eidam | SuperSaaS

    05/09/2021, 3:45 PM
    ๐Ÿ‘‹ There is an increase of Internal Errors since 8AM CEST, even after 3 retries. ~30 DO instances affected, perhaps connected to some ongoing network issues?
  • e

    eidam | SuperSaaS

    05/09/2021, 4:13 PM
    FYI ticket #2153628
  • s

    schickling

    05/09/2021, 4:28 PM
    Hey there! Is
    wrangler tail
    working for anyone here in projects using Durable Objects?
  • s

    schickling

    05/09/2021, 4:28 PM
    https://community.cloudflare.com/t/wrangler-tail-doesnt-work-when-using-durable-objects/267650
  • e

    eidam | SuperSaaS

    05/09/2021, 6:16 PM
    Seems to be resolved now, last error 5 minutes ago and affected DOs seems to be responsive.. some of them were stuck for ~11 hours. Happy to provide more info for checking the root cause tomorrow, just ping me ๐Ÿ™ ๐Ÿ™‚
  • b

    brett

    05/10/2021, 1:12 PM
    Sorry about the extended length of that issue -- we're improving our alerts as we run into these types of issues and add more beta users. I saw your message here and was able to resolve it... we're working on routing around network issues better in the future. ๐Ÿ˜ฆ
  • e

    eidam | SuperSaaS

    05/10/2021, 1:17 PM
    Thank you! And no worries, itโ€™s beta after all ๐Ÿ™‚ I was not sure if I should just report it here or through support channels as well
  • v

    vans163

    05/10/2021, 3:33 PM
    Are DO data transfer costs negotiable? It seems cloudflare modeled the cost after AWS which already charges 1000x+ markup compared to the POP/IXPs they peer with
  • v

    vans163

    05/10/2021, 3:34 PM
    making certain types of business models unfeasible to run on cloudflare
  • v

    vans163

    05/10/2021, 3:34 PM
    (say if your business model fits the high bandwith scope)
  • m

    Mallissin

    05/10/2021, 5:40 PM
    Can't you just put the high bandwidth stuff into the Cache system instead of direct from the workers?
  • k

    kristian

    05/10/2021, 6:14 PM
    experimenting with a simple data store using durable objects. uses a neat tool called zod for JSON validation https://github.com/signalnerve/do-simple-store/blob/main/src/object.ts
  • k

    kristian

    05/10/2021, 6:15 PM
    cc @User ^
  • m

    mz

    05/10/2021, 6:24 PM
    Is it a good idea to build something like Wrangler Tail using durable objects? Conversely, is Wrangler Tail implemented using durable objects? .
  • m

    mz

    05/10/2021, 6:27 PM
    Also, is there one instance of durable object exe at any given point in time or are durable objects run in multiple zones nearer to Workers backed by a persistence layer that is stored in just one location? From the open beta blog post it looks like there's ever only one execution of a durable object worldwide that's active. And, is the persistence layer of a durable object replicated across regions/countries?
  • u

    Unsmart | Tech debt

    05/10/2021, 7:21 PM
    Huh zod looks interesting havent seen that one before
  • b

    brett

    05/10/2021, 7:44 PM
    There is only one instance of each Durable Object worldwide, the primary purpose is to allow for coordination. The persistent storage is replicated, if the colo the object was running in fails, you can expect it fail over to a different location with the same persistent data available.
  • v

    vans163

    05/10/2021, 9:17 PM
    the Cloudflare cache? that is interesting.. maybe
  • v

    vans163

    05/10/2021, 9:17 PM
    could the cache be pulled for a DO/worker? like so I dont need to run any servers
  • i

    itsmatteomanf

    05/10/2021, 9:23 PM
    Yes. https://developers.cloudflare.com/workers/runtime-apis/cache
  • v

    vans163

    05/10/2021, 9:38 PM
    maybe its possible any idea how fast the cache propogates globally?
  • i

    itsmatteomanf

    05/10/2021, 9:38 PM
    It doesn't, that's per colo.
  • i

    itsmatteomanf

    05/10/2021, 9:38 PM
    For propagation you need KV.
1...818283...567Latest