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

    itsmatteomanf

    01/22/2021, 4:09 PM
    Then good luck with waiting ahah
  • i

    itsmatteomanf

    01/22/2021, 4:10 PM
    I am kinda unable to load it, as it was seen as a DDoS at the fifth time ahah so it's shut down quickly ahah
  • l

    luc122c

    01/23/2021, 12:10 AM
    This is really cool 🙂
  • f

    Farkas

    01/23/2021, 12:14 AM
    ^this, I remember several fiascos here in educational service where they implemented a similar system, except that their waiting room was just a web element you could right click and remove and skip ahead in line lmao
  • e

    eidam | SuperSaaS

    01/24/2021, 1:09 PM
    Is there any info on the planned pricing? Mainly interested how its gonna compare with KV writes
  • t

    toinbis

    01/24/2021, 1:56 PM
    Am trying to deploy https://github.com/xortive/durable-objects-template with wrangler built from sources, from https://github.com/cloudflare/wrangler/tree/malonso/modules-do branch.
    npm build
    outputs:
  • t

    toinbis

    01/24/2021, 1:56 PM
  • t

    toinbis

    01/24/2021, 1:57 PM
    I wonder how do I publish all this to production... 'wrangler publish' throws:
    Error: invalid type: sequence, expected any string
    . Thanks!
  • g

    Greg Brimble | Cloudflare Pages

    01/24/2021, 2:12 PM
    Ooh, didn't know there was a template repo anywhere yet. That's exciting! They're obviously still working on adding support, so it might not be there yet (essentially if the branch still has active development going on). Hopefully wrangler support comes along soon, but until then, I'm not sure there's much support anyone here can really offer. Best suggestion I could offer would be to take a look at the build artifacts and make sure they look sensible, and then you could try uploading it to the API directly, copying how the
    workers-chat-demo
    publish script works.
  • t

    toinbis

    01/24/2021, 2:16 PM
    "Ooh, didn't know there was a template repo anywhere yet. That's exciting!" -> https://github.com/cloudflare/wrangler/pull/1677#issuecomment-761161800 found it from here 🙂
  • g

    Greg Brimble | Cloudflare Pages

    01/24/2021, 2:17 PM
    Oh, I could have sworn I was subscribed to that issue, but apparently not.. Thanks for pointing it out! 🙂 I'll have to have a play with it myself later
  • t

    toinbis

    01/24/2021, 2:20 PM
    I'll be playing to get 'hello world' DO up and running. Will revert to worker-chat-demo publish.sh and/or curl methods described in docs. Super excited to finally get my hands dirty and build something with DO 🙂
  • g

    Greg Brimble | Cloudflare Pages

    01/24/2021, 2:20 PM
    If you do get something working, please let me know! The single biggest blocker to me properly playing with Durable Objects has been the lack of wrangler support.
  • t

    toinbis

    01/24/2021, 2:22 PM
    I sure will! And yeah, I do hope wrangler support is just around the corner! I've also created github issue with request for deployment instructions - https://github.com/xortive/durable-objects-template/issues/2 , just in case you might be willing to follow it.
  • j

    jed

    01/26/2021, 9:30 AM
    hey all, does anyone know whether a DO has access to its own id (ie the value returned by
    idFromName
    of the worker that invoked it)?
  • g

    Greg Brimble | Cloudflare Pages

    01/26/2021, 2:44 PM
    I don't so. You could pass it along as part of the request (maybe in a header or something)? Curious to know what use you have for it?
  • g

    Greg-McKeon

    01/26/2021, 3:14 PM
    Hey Jed! We've considered adding this, but one of the issues is that for user-provided names (where you use idFromName), we are not able to always provide you the user-provided name. For example, if you access a Durable Object using idFromName, but then the Object is destroyed by the system because it isn't accessed and didn't store persistent state, and then you reaccess the Object again using the system-generated id, we won't know what the user-provided name was. I'm also curious to know what your use-case for the id is, if you're willing to share.
  • a

    ai

    01/26/2021, 4:10 PM
    Can a transaction function be async?
  • k

    kenton

    01/26/2021, 4:18 PM
    We can easily provide the raw ID (not the name), which seems to be what @User is asking for. We always intended to provide that, just haven't gotten around to adding it to the API.
  • k

    kenton

    01/26/2021, 4:19 PM
    Yes, in fact they have to be async since you are expected to await gets and puts inside the transaction
  • a

    ai

    01/26/2021, 4:19 PM
    Ah of course
  • j

    jed

    01/26/2021, 10:25 PM
    awesome, thanks. obviously not a big deal, but would be nice to not have to duplicate the logic to get the id from the source string (ie from cookie or query param or header) across both worker and DO.
  • k

    Kat

    01/29/2021, 11:08 PM
    I'm sure this has been already asked, but any ideas on how long until Durable Objects will be GA?
  • a

    albert-zhao

    01/29/2021, 11:15 PM
    There's no concrete timeline yet, though the hope is to open up the beta in several months
  • d

    dalek_cos

    01/30/2021, 6:17 PM
    Is your endgame to turn Objects in the future into some sort of full nosql DBMS like Mongo, to eventually make CF a full cloud platform in the edge, removing the need for other players?
  • t

    toinbis

    01/30/2021, 6:49 PM
  • t

    toinbis

    01/30/2021, 6:49 PM
    From https://blog.cloudflare.com/introducing-workers-durable-objects/ .
  • c

    Ceru ©

    01/30/2021, 7:58 PM
    i kinda want to give that a go
  • c

    Ceru ©

    01/30/2021, 7:58 PM
    like if you used KV as the index, im pretty sure you can get it work pretty easily
  • c

    Ceru ©

    01/30/2021, 8:00 PM
    i dont have access to DO but i would be willing to give it a shot if i were given access
1...8910...567Latest