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

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:32 PM
    Could and probably should be sanitizing on the entrypoint Worker script.
  • g

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:33 PM
    I see my network of DOs as my trusted VPC essentially. Anything in there, I trust. Anything incoming to the Worker Script, I don't. So like @User said, the Worker Script is my gatekeeper.
  • v

    vans163

    04/04/2021, 2:34 PM
    Oh another cool feature would be a way to keep a DO alive 24/7
  • v

    vans163

    04/04/2021, 2:34 PM
    To prevent wierd edge cases
  • g

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:35 PM
    Got an example?
  • v

    vans163

    04/04/2021, 2:35 PM
    Tho nm that's not a solution
  • v

    vans163

    04/04/2021, 2:35 PM
    Eventually some act of god or system maintenance will bring it down
  • e

    eidam | SuperSaaS

    04/04/2021, 2:35 PM
    Its serverless, it should be brought down 🙂
  • g

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:35 PM
    Yeah, you should probably be just re-getting the stub every time you can break syncronicity.
  • v

    vans163

    04/04/2021, 2:36 PM
    When using KV worker storage, instead of the DO storage. And fetching out a copy of the KV data
  • g

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:36 PM
    V. good point lol
  • v

    vans163

    04/04/2021, 2:36 PM
    If the DO dies and ups again. Itl read its initial state from global KV but global KV might be behind
  • v

    vans163

    04/04/2021, 2:36 PM
    During these seconds
  • g

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:36 PM
    At that point, you've essentially got an EC2 instance haha
  • v

    vans163

    04/04/2021, 2:36 PM
    But I dont wanna deal with amazons crap lol and overprovisioning
  • v

    vans163

    04/04/2021, 2:37 PM
    And bandwith charges that are outright fraud
  • g

    Greg Brimble | Cloudflare Pages

    04/04/2021, 2:37 PM
    If you can't deal with your data being wrong, you have to use DO (or some other provider). KV just won't work for it.
  • v

    vans163

    04/04/2021, 2:38 PM
    I can deal with data being wrong but a few users might get stuck jobs
  • v

    vans163

    04/04/2021, 2:40 PM
    https://zod.tv, basically this is what we doing. We want to put job queues for video transcoding jobs on cloudflare. Before using a simple POC with workers unbound the problem was our workers polling for work. 1 worker ate up a month of CFW requests lol cuz it polls every 3 seconds
  • v

    vans163

    04/04/2021, 2:41 PM
    It needs to be as responsive and realtime as possible
  • v

    vans163

    04/04/2021, 2:42 PM
    We plan to have atleast 1000 and scale to 100,000 zodworkers later
  • v

    vans163

    04/04/2021, 2:42 PM
    The workers will keep a WS open 24/7
  • v

    vans163

    04/04/2021, 2:42 PM
    So the walltime billing is icky
  • v

    vans163

    04/04/2021, 2:43 PM
    Itl be using 0 cpu just ram to keep a socket open and some basic kernel tcp time
  • k

    Kat

    04/04/2021, 2:43 PM
    Sounds like it would be drastically cheaper to just run an EC2 instance lol (even though you don't want to) 😛
  • v

    vans163

    04/04/2021, 2:43 PM
    Dont want the service going down
  • v

    vans163

    04/04/2021, 2:43 PM
    Ever
  • v

    vans163

    04/04/2021, 2:43 PM
    Ec2 is unreliable
  • v

    vans163

    04/04/2021, 2:44 PM
    Running 10 ec2 instances across 3 cloud providers
  • k

    Kat

    04/04/2021, 2:44 PM
    What about like Kubernetes or something? 🤔
1...454647...567Latest