{"by":"NathanFlurry","descendants":26,"id":42472519,"kids":[42477308,42484951,42482630,42484717,42472661,42482888,42482964,42482950,42486497,42505035],"score":133,"text":"Hello! We posted a Show HN for Rivet last year for our container orchestration project (<a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37188659\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37188659</a>). In that time, a lot has changed that I think HN will find interesting.<p>Rivet is open-source actor infrastructure similar to Cloudflare&#x27;s Durable Objects. Rivet itself already serves millions of MAU in production using our current container runtime – primarily for multiplayer games – and Rivet Actors are a new extension to support actor-like workloads. Rivet Actor&#x27;s core primitives are RPC, state, and events.<p>Actors are powered by Rust, V8 isolates (supports Deno), and FoundationDB. An architecture diagram is available here for [1]. If you&#x27;re not familiar with FoundationDB, you&#x27;re overdue to watch Dave Rosenthal&#x27;s talk [3]. (I firmly believe it&#x27;s by far the best permissively licensed database; if only it had a well maintained SQL layer.)<p>Here&#x27;s where Rivet&#x27;s architecture gets fun – we don&#x27;t rely on a traditional orchestrator like Kubernetes or Nomad for our runtime. Instead, our orchestrator is powered by an in-house actor-like workflow engine – similar to how FoundationDB is powered by their own actor library (Flow [4]) internally. It lets us reliably &amp; efficiently build complex logic – like our orchestrator – that would normally be incredibly difficult to build correctly. For example, here&#x27;s the logic that powers Rivet Actors themselves with complex mechanisms like retry upgrades, retry backoffs, and draining [2].<p>One of the reasons we built Rivet Actors is because we tried to replace most of our Redis-based realtime infrastructure with Durable Objects. The architecture allowed us to build realtime features much faster &amp; efficiently, but the platform &amp; APIs were needlessly rigid and difficult to use. Our goal is to build an actor-like platform that includes the bells and whistles required for developers to benefit from the actor model without the learning curve of tools like Erlang&#x2F;OTP, Akka, or Orleans.<p>Rivet Actors provides a few key benefits in flexibility over Durable Objects:<p>- Open-source (Apache 2.0) – built to be self-hosted and deployed on-prem<p>- Provides observability out of the box, no Logpush required<p>- Rivet Actors support the Deno runtime, so NPM &amp; JSR just works<p>- @rivet-gg&#x2F;actor [5] framework provides RPC, state, and events out of the box for faster bootstrapping; you can modify and deploy it yourself<p>- Supports both V8 isolates &amp; Docker-compatible containers so you can run any software you&#x27;d like, like Godot&#x2F;Unity servers or video transcoding<p>- Also supports TCP &amp; UDP (we run games!)<p>- Provides vanilla HTTP API for easy use with existing apps<p>- Full control over regions<p>There&#x27;s plenty more that I don&#x27;t have space to talk about. Give our docs a read if you&#x27;d like to learn more [6] or read about internal design decisions [7]. I&#x27;ll be in the comments answering questions!<p>Cheers,\nNathan<p>[1] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;rivet-gg&#x2F;rivet?tab=readme-ov-file#diagram\">https:&#x2F;&#x2F;github.com&#x2F;rivet-gg&#x2F;rivet?tab=readme-ov-file#diagram</a><p>[2] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;rivet-gg&#x2F;rivet&#x2F;blob&#x2F;a3db31f3b5c351061d665003a6a8dfbf3372690b&#x2F;packages&#x2F;services&#x2F;ds&#x2F;src&#x2F;workflows&#x2F;server&#x2F;pegboard&#x2F;mod.rs#L49\">https:&#x2F;&#x2F;github.com&#x2F;rivet-gg&#x2F;rivet&#x2F;blob&#x2F;a3db31f3b5c351061d665...</a><p>[3] <a href=\"https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9g84y_60VGM\" rel=\"nofollow\">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9g84y_60VGM</a><p>[4] <a href=\"https:&#x2F;&#x2F;apple.github.io&#x2F;foundationdb&#x2F;flow.html\" rel=\"nofollow\">https:&#x2F;&#x2F;apple.github.io&#x2F;foundationdb&#x2F;flow.html</a><p>[5] <a href=\"https:&#x2F;&#x2F;jsr.io&#x2F;@rivet-gg&#x2F;actor&#x2F;doc\" rel=\"nofollow\">https:&#x2F;&#x2F;jsr.io&#x2F;@rivet-gg&#x2F;actor&#x2F;doc</a><p>[6] <a href=\"https:&#x2F;&#x2F;rivet.gg&#x2F;docs\">https:&#x2F;&#x2F;rivet.gg&#x2F;docs</a><p>[7] <a href=\"https:&#x2F;&#x2F;rivet.gg&#x2F;docs&#x2F;internals&#x2F;design-decisions\">https:&#x2F;&#x2F;rivet.gg&#x2F;docs&#x2F;internals&#x2F;design-decisions</a>","time":1734712593,"title":"Show HN: Rivet Actors – Durable Objects built with Rust, FoundationDB, Isolates","type":"story","url":"https://github.com/rivet-gg/rivet"}