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

    Vanessa🦩

    06/16/2021, 11:09 PM
    Thanks. The page linked in the tweet forgot to mention that, even though it was an announcement specifically for Durable Objects.
  • g

    Greylock

    06/16/2021, 11:09 PM
    so according to the rhetoric here, a single object does not scale well since its backed by a single worker and thus, a single thread.
  • g

    Greylock

    06/16/2021, 11:10 PM
    ie your bandwidth will be bottlenecked by the throughput limitations of that given worker
  • j

    Josh

    06/16/2021, 11:10 PM
    My bad yeh
  • j

    Josh

    06/16/2021, 11:10 PM
    https://developers.cloudflare.com/workers/learning/how-kv-works was what I was thinking of.
  • g

    Greylock

    06/16/2021, 11:11 PM
    I guess I fail to see why durable objects even expose a method of compute (and run on workers) in the first place.
  • g

    Greylock

    06/16/2021, 11:12 PM
    They cant have large enough arrays of data to actually do sorting or indexing, so I guess I dont get why they dont just abstract them away to some higher level KV api
  • j

    Josh

    06/16/2021, 11:12 PM
    I guess the real question is what is the limit of the single thread, how many requests per second can it handle
  • g

    Greylock

    06/16/2021, 11:13 PM
    I would guess it depends
  • g

    Greylock

    06/16/2021, 11:13 PM
    some edge nodes might have different configs or CPUs than others
  • j

    Josh

    06/16/2021, 11:13 PM
    Naa, CF are very consistent with edge compute
  • g

    Greylock

    06/16/2021, 11:13 PM
    I wasn't sure
  • g

    Greylock

    06/16/2021, 11:13 PM
    but I would imagine it would be in the thousands
  • j

    Josh

    06/16/2021, 11:14 PM
    @User Any idea on the above?
  • j

    Josh

    06/16/2021, 11:14 PM
    There is always this as well @User https://blog.cloudflare.com/partnership-announcement-db/
  • j

    Josh

    06/16/2021, 11:14 PM
    I guess atm they're not looking at a full DB product so they've partnered
  • g

    Greylock

    06/16/2021, 11:15 PM
    which I saw
  • g

    Greylock

    06/16/2021, 11:15 PM
    but that just introduces more confusion about what the actual purpose of durable objects are
  • g

    Greylock

    06/16/2021, 11:15 PM
    I was thinking like small bits of user data such as their email and whatnot, so that it would be close to the user and thus, have lower latency
  • g

    Greylock

    06/16/2021, 11:16 PM
    it seems more like a lightweight KV store put right next to the user for the lowest latency at the cost of needing to be small, light and simple
  • j

    Josh

    06/16/2021, 11:17 PM
    It's cheaper than KV as well as can be larger iirc
  • j

    Josh

    06/16/2021, 11:17 PM
    So it has it's benefits
  • g

    Greylock

    06/16/2021, 11:17 PM
    "can be larger"
  • g

    Greylock

    06/16/2021, 11:17 PM
    howso
  • g

    Greylock

    06/16/2021, 11:17 PM
    each value cannot be larger than 3kb
  • g

    Greylock

    06/16/2021, 11:18 PM
    oh
  • g

    Greylock

    06/16/2021, 11:18 PM
    sorry 32kb
  • g

    Greylock

    06/16/2021, 11:18 PM
  • g

    Greylock

    06/16/2021, 11:18 PM
    idk why thats not showing as an image
  • g

    Greylock

    06/16/2021, 11:18 PM
    https://developers.cloudflare.com/workers/platform/limits
1...102103104...567Latest