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

    nilslice

    02/16/2021, 5:10 AM
    good to know, thanks! not super specific, but I found this on the 1006: https://support.cloudflare.com/hc/en-us/articles/360029779472-Troubleshooting-Cloudflare-1XXX-errors#:~:text=has%20been%20banned-,Common%20causes,the%20Preview%20tab%20relies%20upon. > Errors 1006, 1007 or 1008 Access Denied: Your IP address has been banned > Common causes > A Cloudflare customer blocked traffic from your client or browser. > > Error 1006 also occurs in the Cloudflare Workers app under the Preview tab when a customer uses Zone Lockdown or any other Cloudflare security feature to block the Google Cloud Platform IPs that the Preview tab relies upon.
  • n

    nilslice

    02/16/2021, 5:11 AM
    however, I am not using the Preview tab in the Workers UI
  • n

    nilslice

    02/16/2021, 5:11 AM
    and I don't use any of the mentioned zone/security features
  • k

    kenton

    02/16/2021, 5:18 AM
    Hmm, yeah, if you haven't configured your zone to block any IPs then it's pretty strange you'd see that error at all. In any case this is unrelated to Workers. You might want to raise a support ticket.
  • n

    nilslice

    02/16/2021, 5:20 AM
    Ok, thanks. I'll keep tinkering a bit... this is just for fun, I feel bad enough wasting anyone's time on support here in the chat. but, I thought it was strange to encounter that error.
  • p

    Peps

    02/16/2021, 10:44 AM
    Hm I believe Cloudflare sometimes disconnects websockets on purpose when they restart servers or release new code, and you're supposed to reconnect then
  • p

    Peps

    02/16/2021, 10:44 AM
  • p

    Peps

    02/16/2021, 10:44 AM
    Though it would indeed be pretty weird if you get it every time after a couple seconds
  • k

    kenton

    02/16/2021, 3:38 PM
    Yes, WebSockets will be randomly disconnected sometimes due to updates and other things, but that should happen more like once a day, not every few seconds...
  • f

    frigjord

    02/17/2021, 12:29 PM
    What's the status on DO general availability, since beta access seem to have long waiting time?
  • u

    0xAsimetriq

    02/17/2021, 4:57 PM
    Hey guys! Is it possible to dm someone about possibility to jump on a beta? It's been several months since I joined waiting list. I'm looking to test drive DO as alternative to firebase's firestore/functions combo for a mobile multiplayer game (happy to walk you through my use cases if needed).
  • e

    eidam | SuperSaaS

    02/17/2021, 4:58 PM
    DM @User about your use-case, the closed beta is very limited (about 1% acceptance-rate) but they are always open to hear about use-cases 🙂
  • s

    SPACEMATRIX

    02/18/2021, 2:27 AM
    Are durable objects available to the general public yet?
  • a

    ai

    02/18/2021, 2:33 AM
    not yet
  • m

    Murray

    02/18/2021, 6:26 AM
    Another option would be to publish an event when an DO is created and deleted to a stream and then add/del a platform managed KV list for the DO namespace. A client could list all DO's in a namespace by doing a list in KV. That way perf time to query is fixed, just eventually consistent.
  • k

    kenton

    02/18/2021, 4:16 PM
    Yes, but applications can also do that for themselves pretty easily. If we make it part of the platform, then we'd be incurring the expense even for apps that don't need it, and would have to charge more. Our philosophy here is that we want to give developers the power to choose the best trade-offs for their app.
  • u

    0xAsimetriq

    02/18/2021, 7:10 PM
    How would you guys approach matchmaking between 2 characters (2 durable objects) for a game duel (another durable object)? Best I came up so far is to check KV for existing match object, if none exist create one and store id in KV, once 2 players match delete duel id from KV. But due to eventual consistency nature of KV, this feels very error prone.
  • g

    Greg Brimble | Cloudflare Pages

    02/18/2021, 7:11 PM
    You could do the match-making in a central DO which delegates out to the various 'lobby' DOs.
  • g

    Greg Brimble | Cloudflare Pages

    02/18/2021, 7:11 PM
    I've been thinking about this quite a lot myself lately.
  • g

    Greg Brimble | Cloudflare Pages

    02/18/2021, 7:13 PM
    I've been trying to think up a way to match up nearby people. Maybe using their connecting colo as a DO id name or something like that.
  • g

    Greg Brimble | Cloudflare Pages

    02/18/2021, 7:13 PM
    Not sure yet.
  • u

    0xAsimetriq

    02/18/2021, 7:15 PM
    That's an interesting idea, could push players into a lobby, mark it as busy and create new one for future matches if player connects and there is no existing one
  • g

    Greg Brimble | Cloudflare Pages

    02/18/2021, 7:16 PM
    Yup, exactly 👍
  • a

    ai

    02/18/2021, 7:26 PM
    I can't wait for someone to build the first serverless multiplayer Civilization game on durable objects
  • e

    Electroid

    02/18/2021, 8:06 PM
    Your wish might become a reality soon enough! 🙂 I've been tinkering with a DO Minecraft server. Each world "chunk" is a DO.
  • g

    Greg Brimble | Cloudflare Pages

    02/18/2021, 8:07 PM
    That sounds so unbelievably cool
  • j

    Jacob | Pages

    02/18/2021, 8:47 PM
    wait you can do that? O_O
  • j

    Jacob | Pages

    02/18/2021, 8:47 PM
    an MC server running on a cdn would be insane
  • e

    Electroid

    02/18/2021, 8:54 PM
    It wouldn't be the "official" server, as that's written in Java. But there are many libraries out there to provide some of the functionality (like block material drops). If someone had a lot of time they could cetainly replicate a signifiant portion of the server feature set. This PoC will more or less be breaking/placing blocks and maybe PvP.
  • a

    andrew | 1003

    02/18/2021, 9:54 PM
    Wow! Minecraft *at the edge!
1...192021...567Latest