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

    Greg-McKeon

    12/03/2020, 9:18 PM
    Yep, if you're already in the beta that email doesn't apply 🙂
  • g

    Greg-McKeon

    12/03/2020, 9:18 PM
    There isn't an easy way in our system to separate out users who are in already from users who are still in the queue
  • i

    itsmatteomanf

    12/03/2020, 10:15 PM
    Am I in, though? I got an e-mail from you, to which I replied, then got the e-mail @User received.
  • g

    Greg-McKeon

    12/03/2020, 10:18 PM
    As of your message, you were not. As of now, you are 🙂
  • i

    itsmatteomanf

    12/03/2020, 10:20 PM
    Thanks! Now I want to add a counter of the number of tests done in my Cloudflare Tool... it would be cool a views per test, but I fear it would become large. If only there was an easy way to know the number of keys in a KV store.
  • k

    kristian

    12/04/2020, 1:13 AM
    request for a rate limiter package built on top of durable objects 🙂 if anyone builds it I would love to beta test
  • i

    itsmatteomanf

    12/04/2020, 1:17 AM
    One question I have about Durable Objects. Are you able to upload it via Wrangler (or are you going to be able to do that soonish)?
  • i

    itsmatteomanf

    12/04/2020, 1:18 AM
    I saw the script on the docs, but that would mean it can't be integrated with Workers SItes. I don't think it works now though, from what I read.
  • i

    itsmatteomanf

    12/04/2020, 1:29 AM
    Got the answer here: https://github.com/cloudflare/workers-chat-demo/blob/main/chat.mjs
  • k

    kristian

    12/04/2020, 3:03 AM
    Lmao I forgot the canonical example is a rate limiter
  • k

    kristian

    12/04/2020, 3:04 AM
    We should make that a package, I basically want to rate limit on a unique header or something in my existing stuff and ideally our future wrangler setup would make that easy
  • i

    itsmatteomanf

    12/04/2020, 9:49 AM
    While I was researching the docs I saw that and I was wondering if I was missing something ahah
  • e

    eidam | SuperSaaS

    12/04/2020, 10:02 AM
    I would love to participate on that
  • g

    geelen

    12/04/2020, 12:22 PM
    um, question
  • g

    geelen

    12/04/2020, 12:22 PM
    so scripts can having bindings
  • g

    geelen

    12/04/2020, 12:23 PM
    and bindings can be WASM
  • g

    geelen

    12/04/2020, 12:23 PM
    or DOs
  • g

    geelen

    12/04/2020, 12:23 PM
    so you have a HTTP worker that has a DO namespace binding to communicate with it
  • g

    geelen

    12/04/2020, 12:23 PM
    but could the DO itself have a WASM binding so its implementation was written in something non-JS?
  • g

    geelen

    12/04/2020, 12:24 PM
    or can a DO script not have any other bindings
  • a

    AlexRobinson

    12/04/2020, 9:13 PM
    Yes a DO script can have any arbitrary bindings you want, including WASM. It can even bind a different DO namespace or its own DO namespace if you want
  • t

    Tobias Lins

    12/09/2020, 2:35 PM
    Can we use durable objects as a message queue?
  • p

    PhilipA

    12/09/2020, 2:53 PM
    This might need a GitHub issue report on the specific repo, but maybe there is something obvious for the DO team to point me towards - the main function in the cloudflare kv-asset-handler library (getAssetFromKV) requires a FetchEvent as a parameter, but new (module) style workers which I am trying with DO only receive a Request object to the fetch method. Is a FetchEvent available somewhere, or does getAssetFromKV have to be re-written to work without it (seems to boil down to a single line - it calls event.waitUntil(cache.put(cacheKey, response.clone())) - I assume any code using those FetchEvent methods will have issues?
  • h

    haneefmubarak

    12/09/2020, 8:29 PM
    Sure, I don't see why not!
  • t

    Tobias Lins

    12/09/2020, 8:54 PM
    amazing 😍 then just need to wait for the access to get started!
  • a

    AlexRobinson

    12/09/2020, 11:48 PM
    @User unfortunately there isn't currently an equivalent of waitUntil for durable objects. We'll be adding that ability back in soon
  • n

    Nikil

    12/10/2020, 1:29 AM
    lovely - I was thinking about doing a game as a first test as well (when I get added)
  • n

    Nikil

    12/10/2020, 1:31 AM
    @User I'm a little confused now - am I already in or am I in the next batch
  • a

    Aaron Peters

    12/10/2020, 8:07 AM
    Is there a way to know where one is on the Durable Objects waiting list? I would love to know if I need to wait one more week or perhaps 3 months?
  • a

    albert-zhao

    12/10/2020, 4:35 PM
    Sorry for the wait Aaron! It might be until early January we can start adding more because the team is still working through some architecture issues.
12345...567Latest