Celld: Self-hosted, distributed Durable Objects

(github.com)

90 points | by calvinfo 5 hours ago ago

9 comments

  • khalidx 9 minutes ago

    Finally!

    So happy to see support for running durable objects outside of one provider. Upvoted.

    The "durable object" concept has been repeatably demonstrated to be a valuable abstraction.

    "Each object is its own SQLite database, addressed by name and replicated to an S3-compatible bucket you own" -- this concept can take you a long way, both in its power and simplicity.

  • vmg12 an hour ago

    All we need is a way to run these on spot instances

    • wmf 29 minutes ago

      I don't see why not. Somebody once wrote a simple Lambda that spawns a new instance when your spot instance dies so there's always at least one running.

  • jauntywundrkind 3 hours ago

    Well that couldn't have been any more timely. Did they know? Were they keeping this in a back pocket for the time?

    CloudFlare OS: https://blog.cloudflare.com/cloudflare-os/ https://news.ycombinator.com/item?id=49182996

    And yes, celld is isolates! The very lightweight within v8 isolation boundary. Hence the "very low idle cost". The deno team rolled their own new runtime! This one without deno_core! Shout out to this excellent 2022 post: https://deno.com/blog/roll-your-own-javascript-runtime https://news.ycombinator.com/item?id=35819990 https://news.ycombinator.com/item?id=35819990

    It's super super exciting having an age where many pieces of software can all run with low profiles. Very timely, again, for the unbelievably order of magnitude (and thats 10 to the not 2 to the, for you fellow computer nerds) ish ram crunch we are in. Next up, at some point, ideally we get some v8-like runtimes where we can share libraries across multiple isolates! Separating the shared code from the shared data, so we have multiple instances of the library, seems much harder. (It feels like wasm has some/much promise here and I eagerly await clearer signals that code-sharing while sandboxing is indeed possible)

    • reactordev an hour ago

      Now you’re getting into the realm of old SOA… where data exchanges are just as stochastic as services on the pipe.

    • wartywhoa23 an hour ago

      The order of magnitude of this is simply mindblowing.

  • zuzululu 19 minutes ago

    i donno...i have some doubts about this

    cloudflare gives you that instant geo-sync across the world that is hard to beat

    with Celld do i need to buy bare metal in major continents

    • vmg12 17 minutes ago

      Geo-sync? I'm pretty sure durable objects are tied to the datacenter they are created in.

      • zuzululu 15 minutes ago

        nothing beats cloudflare's reach they have nodes everywhere

        thats hard to beat