{"by":"sewen","descendants":109,"id":40659160,"kids":[40661078,40659846,40659621,40664807,40661882,40660596,40660073,40659937,40660251,40661486,40659331,40659493,40659706,40659336,40659199,40659958,40659764,40663537,40660250,40659224,40659339,40659316,40663407,40659321,40659552,40659772,40660225,40660019,40689690,40662224],"score":185,"text":"We&#x27;d love to share our work with you: Restate, a system for workflows-as-code (durable execution). With SDKs in JS&#x2F;Java&#x2F;Kotlin and a lightweight runtime built in Rust&#x2F;Tokio.<p><a href=\"https:&#x2F;&#x2F;github.com&#x2F;restatedev&#x2F;\">https:&#x2F;&#x2F;github.com&#x2F;restatedev&#x2F;</a>\n<a href=\"https:&#x2F;&#x2F;restate.dev&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;restate.dev&#x2F;</a><p>It is free and open, SDKs are MIT-licensed, runtime permissive BSL (basically just the minimal Amazon defense).\nWe worked on that for a bit over a year. A few points I think are worth mentioning:<p>- Restate&#x27;s runtime is a single binary, self-contained, no dependencies aside from a durable disk. It contains basically a lightweight integrated version of a durable log, workflow state machine, state storage, etc. That makes it very compact and easy to run both on a laptop and a server.<p>- Restate implements durable execution not only for workflows, but the core building block is durable RPC handlers (or event handler). It adds a few concepts on top of durable execution, like virtual objects (turn RPC handlers into virtual actors), durable communication, and durable promises. Here are more details: <a href=\"https:&#x2F;&#x2F;restate.dev&#x2F;programming-model\" rel=\"nofollow\">https:&#x2F;&#x2F;restate.dev&#x2F;programming-model</a><p>- Core design goal for APIs was to keep a familiar style. An app developer should look at Restate examples and say &quot;hey, that looks quite familiar&quot;. You can let us know if that worked out.<p>- Basically every operation (handler invocation, step, ...) goes through a consensus layer, for a high degree of resilience and consistency.<p>- The lightweight log-centric architecture gives Restate still good latencies: For example around 50ms roundtrip (invoke to result) for a 3-step durable workflow handler (Restate on EBS with fsync for every step).<p>We&#x27;d love to hear what you think of it!","time":1718205923,"title":"Show HN: Restate – Low-latency durable workflows for JavaScript/Java, in Rust","type":"story","url":"https://restate.dev/"}