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

    Kevin W - Itty

    08/25/2021, 3:21 AM
  • e

    Erwin

    08/25/2021, 3:21 AM
    Oh..
  • e

    Erwin

    08/25/2021, 3:21 AM
    Could you try removing the binding in the wrangler.toml for one.. do the new-class for that..
  • e

    Erwin

    08/25/2021, 3:22 AM
    then add the binding for the second.. and do the new-class for that?
  • k

    Kevin W - Itty

    08/25/2021, 3:33 AM
    that did it (although a bit fumbly to get there) - thanks @User 👍
  • e

    Erwin

    08/25/2021, 3:37 AM
    Doh.. yeah.. that shouldn't be like that..
  • e

    Erwin

    08/25/2021, 3:38 AM
    I would suggest raising an issue at the wrangler github repo: https://github.com/cloudflare/wrangler/issues
  • k

    Kevin W - Itty

    08/25/2021, 3:43 AM
    will do - i'll try and dig in to replicate this tomorrow or the next day... helping the evacuation efforts in Afghanistan by cloning much of slick.af (which ironically is an Afghan domain) but with DO
  • k

    Kevin W - Itty

    08/25/2021, 3:43 AM
    dusting off all the cobwebs with itty-durable
  • e

    Erwin

    08/25/2021, 4:28 AM
    What are you doing to help the evacuation efforts there? Anything we can do to help?
  • k

    Kevin W - Itty

    08/25/2021, 4:53 AM
    working with a humanitarian that's organizing the evac lists - they want a simple consolidation of entries (there are several incomplete lists floating around), ability for workers to track evacuees to see who's made it onto a plane, which country they've been routed to, etc. Since my immediate familiarity has been a 100% CF stack (KV specifically) with Slick, I figured i'd jump start it with a very unconventional store that had the advantage of being edge-available worldwide... then throw a quick Svelte app up there for them to search/edit records
  • k

    Kevin W - Itty

    08/25/2021, 4:54 AM
    there are faster low/no-code options out there that others are working on in parallel, just not my wheelhouse... and getting volunteers with actual tech skill apparently has been a struggle for these groups
  • k

    Kevin W - Itty

    08/25/2021, 4:55 AM
    so immediate issue I notice... using itty-durable, it appears that perhaps the persistence method has changed in the last few months?
  • k

    Kevin W - Itty

    08/25/2021, 4:55 AM
    code that was once persisting DO appears to no longer...
  • h

    HardAtWork

    08/25/2021, 5:39 AM
    Persistence method? Is that on itty-durable, or in the DO itself?
  • k

    Kevin W - Itty

    08/25/2021, 8:21 AM
    itty-durable just implements the read/write on the state.storage as defined early on... not sure if any of that's changed
  • i

    ItsWendell

    08/25/2021, 8:50 AM
    Oh that's actually awesome 😮
  • k

    Kevin W - Itty

    08/25/2021, 8:52 AM
    it just dumps/retrieves the contents of the durable into a single key 'data' on the designated storage... not suitable for super elaborate DO usage, but great for simple stuff
  • r

    raRaRa

    08/25/2021, 11:01 AM
    Is there a good way to delete all DO's that have been created? I'm trying to update my DO but it still seems to be running the old version after doing wrangler publish
  • r

    raRaRa

    08/25/2021, 11:03 AM
    *old version of the code
  • r

    raRaRa

    08/25/2021, 11:03 AM
    Or actually, it seems to be working now. I guess it just took some time.
  • r

    raRaRa

    08/25/2021, 11:21 AM
    But damn, this is such a magic! Really loving this so far 🙂
  • h

    HardAtWork

    08/25/2021, 12:55 PM
    Ok. Can't think of any major changes to DO storage operations in a while, other than values are now cached in memory automatically when you use
    get()
    , but I'm not as involved in DOs as I probably could be.
  • h

    HardAtWork

    08/25/2021, 1:47 PM
    Hey, if it is open, I can help out with some of it, if you need anything written. Still learning, but hopefully I can help out.
  • k

    Kevin W - Itty

    08/25/2021, 2:00 PM
    Appreciate it @User - we went a different route in the short term and used a no-code solution to kickstart, as we're racing against the clock, but I'll let you know what/if we can get the community help with soon. Kind of tricky because it's identities and passport/credential info for evacuees... some of which are on kill lists, can't exactly have that stuff circulating 😢 That said, def glad this was an excuse to at least get me clearing the dust from my earlier work on DO - i'll be back in no time!
  • s

    Subh

    08/25/2021, 6:31 PM
    Quick question! lets say I have
    /topicId/websockets
    Can someone tell me how many max topic I can subscribe to from one browser client at the same time?
  • k

    kenton

    08/26/2021, 2:12 AM
    I suppose it depends on the browser but I think Chrome has a limit of 6 connections?
  • s

    Subh

    08/26/2021, 7:27 AM
    Gotcha! Thank you!
  • r

    raRaRa

    08/26/2021, 8:40 AM
    Chrome has a limit of 6 connections per host name, and a max of 10 connections. This essentially means that it can handle 6 requests at a time coming from the same host, and will handle 4 more coming from another host at the same time.
  • i

    ItsWendell

    08/26/2021, 9:23 AM
    @User as mentioned in our little private chat, you can potentially get around that by making the connections from a worker, or from a durable object, so that the browser has 1 connection, but the worker / durable object many to the specified topics.
1...165166167...567Latest