TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Your backend should probably be a state machine

14 点作者 abrgr超过 1 年前

8 条评论

datadr超过 1 年前
Really interesting framework for thinking about backend systems. I've been messing around with LLMs, and there's a real need to check and constrain outputs when building anything rigorous. I've only been working through static workflows, but can imagine it only gets more complex if the workflow changes dynamically based on the LLM output. I wonder if this state-machine-based back end is a good way to better manage that.
评论 #37597855 未加载
krebby超过 1 年前
Great post. I really like the idea of explicitly enumerating all state possibilities for a correctness guarantee. This seems spot on for how I want to think about distributed systems.<p>Am I right in assuming this solution is somewhere in between distributed tracing and Workflow definition, like event based programming, but the possible states are always strongly typed &#x2F; defined?<p>I&#x27;ve also been thinking a lot about node-based programming, in a creative context. One piece I keep coming back to is that node trees are really helpful when the logic is straightforward, but can be a bit visually overwhelming for first timers when the logic is nontrivial or it generates complex artifacts as an output. Does State Backed support grouping nodes, a la Blender or Houdini? Or how do you think about information hiding for this type of thing? Looks like right now the nodes represent functions, so you don&#x27;t have to think about what sendWelcomeEmail does, eg. How do you think about representing the state within <i>that</i> logic then?
评论 #37600823 未加载
ian-gillis超过 1 年前
The systems available today (Temporal&#x2F;Cadence&#x2F;etc) definitely make a big mess of updating logic&#x2F;code. This seems so obvious and yet I&#x27;ve not seen it done well -- excited to see where it goes!<p>Also my first time hearing of the Slemiel the painter algorithm (or at least first time hearing it described that way). Thanks for sharing
评论 #37598284 未加载
knackers超过 1 年前
I found the contrast with workflow systems such as Cadence&#x2F;Temporal really interesting. You can tell the author has felt the pain of managing real time distributed state machines.
评论 #37598042 未加载
arunnagarajan超过 1 年前
state machines are a lost art and most of the issues that make it hard to grok for engineers is the lack of good debugging and visual tools. excited to try this out!
评论 #37600756 未加载
griffinmyers超过 1 年前
We&#x27;re still waiting for our &quot;react&quot; moment on the backend; a fundamental shift in the abstractions we treat as the bedrock of our applications.<p>I think the author does a good job here showing why the state machine might just be that abstraction.
评论 #37599212 未加载
rossdavidh超过 1 年前
Hey! Leave my physique out of this...
darthrupert超过 1 年前
That&#x27;s what she said.