Hacker News new | past | comments | ask | show | jobs | submit login
Durable Objects now Generally Available (cloudflare.com)
120 points by bretthoerner on Nov 15, 2021 | hide | past | favorite | 15 comments



Quick plug I'll drop in here (I manage Cloudflare's Developer Advocacy team) - in addition to Durable Objects reaching GA, we also released a great open-source codebase today to help scale your Durable Objects-based projects.

It has built-in sharding and communication between connections/shards - basically how we would recommend people build with DO if they want to hit the ground running.

Check it out on GitHub! https://github.com/cloudflare/dog


Their chat demo is very nice, i'm not a javascript or a webdev guy, but i'm use to see bloat everywhere whenever someone mentions web stuff

> wrangler publish

> What are the dependencies?

> This demo code does not have any dependencies, aside from Cloudflare Workers (for the server side, chat.mjs) and a modern web browser (for the client side, chat.html). Deploying the code requires Wrangler.

I wish more people would care about that kind of details more

Well done


Thanks!

In all honesty, I do it this way because I hate reading. Like really, really hate it. It just seems way more comfortable to build what I need off the base platform APIs I've known for decades than, like, read an intro guide on how to use the latest library or tool or framework or whatever. Probably not the best way to operate as an engineer but I'm glad it ended up making this demo easier to follow! :D

(I'm the tech lead of Cloudflare Workers and I also wrote that chat demo.)


Just waiting on edge containers [1] now. Yes, I know the caveats, that it's not for lifting and shifting existing web apps. But I have a backend processing use case that would be a good fit.

[1]: https://blog.cloudflare.com/containers-on-the-edge/


This seems like it could be a great platform to flesh out the collaborative Svelte REPL I’ve been working on. It’s using CRDTs over websockets with YJS driving Monaco, and I’ve been fiddling with different ways to keep track of rooms and users while keeping it serverless on the JAMStack. I’ve got Supabase handling auth and data storage, but this could be great glue for the final pieces if I’m understanding DO correctly, and even replace a lot of the need for Postgres outside of Auth.


It would be interesting to build something with this on top of SQLite to make a globally distributed fault tolerant SQLite.



rqlite author here, happy to answer any questions about it.


While it could be interesting, it's kind of expensive to have servers in all of those countries globally, and manage all that required software. So pre-made services like Durable Objects make it much more affordable.


Has anybody tried this and can share their experiences? It sounds really cool, but it's usually the edge cases that determine whether something like this is actually good or not. Thanks!


Works well. We're planning to move our real-time collaboration system to it once it's out of beta (which I noticed it is, thanks 8-) )


For what it's worth, this post is about it leaving beta. :)


Alimine error'


so is this a replacement for cosmos DB?


yowzee wowzee :O




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: