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

    gzalo

    08/16/2021, 11:02 PM
    When DO stops being durable 🤣
  • g

    gzalo

    08/16/2021, 11:02 PM
    Basically what is described here https://developers.cloudflare.com/workers/learning/using-durable-objects#risk-of-data-loss
  • g

    gzalo

    08/16/2021, 11:03 PM
    or does that only apply for in-memory state?
  • e

    Erwin

    08/17/2021, 1:29 AM
    Ahh.. that is a generic disclaimer while Durable Objects are in beta.
  • e

    Erwin

    08/17/2021, 1:30 AM
    And no system can 100% guarantee no data loss, but once we are GA I am sure there will be one. The entire system is designed to minimise loss of data as much as possible of course.
  • e

    Erwin

    08/17/2021, 1:31 AM
    That all counts for data that is written to storage. You should expect any in-memory state to be lost at a moment's notice.. It can be evicted, DO can crash.. etc
  • g

    gzalo

    08/17/2021, 2:05 AM
    Oh, I see! Thanks a lot!
  • p

    PhilipA

    08/18/2021, 3:47 PM
    Anyone know if the structuredClone() method for deep cloning objects is available in workers/DO? Or something comparable to Node's v8.serialize()?
  • d

    davidbarratt

    08/18/2021, 4:00 PM
    Is there any update on what the pricing for DO will be for Workers Bundled?
  • h

    HardAtWork

    08/18/2021, 4:03 PM
    *Coming Soon*™️
  • d

    davidbarratt

    08/18/2021, 4:06 PM
    is that soon like today soon or like next year soon?
  • h

    HardAtWork

    08/18/2021, 4:06 PM
    *Soon Soon*™️
  • h

    HardAtWork

    08/18/2021, 4:07 PM
    We don't know, we can only hope...
  • m

    MrBBot

    08/18/2021, 4:13 PM
    I don't think it is, but durable objects can store any values supported by the structured clone algorithm, so you could do
    await storage.put("key", value); const clone = await storage.get("key")
    😄
  • d

    davidbarratt

    08/18/2021, 4:41 PM
    ugh.. I want to use DO, but not knowing how much they will cost is.... annoying
  • k

    kenton

    08/18/2021, 8:16 PM
    Pricing was announced here: https://blog.cloudflare.com/durable-objects-open-beta/
  • h

    HardAtWork

    08/18/2021, 8:46 PM
    May or may not have already been covered, but do cached storage operations still count for billing?
  • a

    albert

    08/19/2021, 5:46 AM
    ^^ I'm very interested in hearing this as well
  • d

    davidbarratt

    08/19/2021, 1:21 PM
    it's missing if anything is included in "Bundled" or not or will DO only be available for "Workers Unbound"?
  • e

    Erwin

    08/19/2021, 1:25 PM
    They are available with both.
  • d

    davidbarratt

    08/19/2021, 1:25 PM
    right... so what is included (if anything) on the paid plan?
  • d

    davidbarratt

    08/19/2021, 1:26 PM
    or is it the same as this? https://developers.cloudflare.com/workers/platform/pricing#pricing-1
  • b

    brett

    08/19/2021, 2:23 PM
    To be clear, a DO can be called from a bundled worker or an unbound worker. DOs have their own pricing. Are you asking about whether any DO billing in included in the first $5/mo of a paid plan, or?
  • d

    davidbarratt

    08/19/2021, 2:24 PM
    Yes. I guess that is my question: Does the free tier or the paid tier (bundled) include any DO usage?
  • b

    brett

    08/19/2021, 2:25 PM
    I'm not sure if that has been decided /cc @User
  • g

    Greg-McKeon

    08/19/2021, 2:26 PM
    Paid tier does included some usage, free tier does not yet (but coming soon)
  • g

    Greg-McKeon

    08/19/2021, 2:27 PM
    cached storage operations do currently count for billing.
  • d

    davidbarratt

    08/19/2021, 2:48 PM
    cool beans! can you share how much usage the paid tier includes?
  • b

    Brizy

    08/20/2021, 3:02 AM
    Is there any way to horizontally scale durable objects? I have a websocket worker which puts websockets into rooms, each of these rooms is a durable object which holds the array of websockets connected to it, since all of the websockets are "centralized" in this durable object, when you hit a high number of websockets, this will become very slow because of having to iterate over a huge list of websockets, ideally I would distribute the websockets of the same room across multiple durable objects but then doing things like broadcasting to all websockets in a room would become impossible currently (afaik). Any ideas?
  • d

    davidbarratt

    08/20/2021, 3:19 AM
    > high number of websockets, this will become very slow because of having to iterate over a huge list of websockets will it though? have you validated this assumption? what is "huge" are we talking millions?
1...157158159...567Latest