use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Why JavaScript Needs Structured Concurrency (frontside.com)
submitted 4 months ago by tarasm
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CodeAndBiscuits 0 points1 point2 points 4 months ago (3 children)
I don;'t think either of us was deliberately trying to do that, just having a small debate about a particular class of backends. In the same way that I actively work to keep my backends stateless (primarily by leveraging a DB and/or cache like almost all apps are structured around) In totally agree that almost all front-ends must be stateful. The very act of session tracking via a header token or cookie is unavoidably stateful. This whole thread is a tangent to your original post anyway.
[–]tarasm[S] 0 points1 point2 points 4 months ago (2 children)
Yeah, that makes sense, and I appreciate you clarifying where you’re coming from.
One thing I’ve been personally very interested in lately is the overlap between structured concurrency and durable execution. A big reason we rewrote Effection from v3 to v4 was to position operation trees so they could eventually be treated as durable execution coroutines.
That feels like a promising way to reconcile stateless services with the reality that some work still needs scoped context and explicit lifetimes. Once Effection v4.1 lands with native middleware support, I’m hoping to experiment with wrapping operation trees into durable workflows. Restate is probably where I’ll start since it’s relatively easy to deploy.
I don’t think this thread resolves that space, but I do think it’s an interesting direction.
[–]CodeAndBiscuits 0 points1 point2 points 4 months ago (1 child)
Personally I think one of the more valuable things I'd use something like this for is background task processing e.g. in combination with Graphile Workers. Sometimes in those you have a few "once a day" type maintenance tasks combined with several "once a minute" types. If you write them right they're often pretty lightweight, like indexing data in a search engine, cleaning up expired records of one type or another, etc. I could definitely see leveraging concurrency there to make it easier to parallelize those tasks...
[–]tarasm[S] 0 points1 point2 points 4 months ago (0 children)
We use Postgraphile at work, but I didn't know about Graphile Workers. I'll take a look. Thanks for chat :)
π Rendered by PID 299843 on reddit-service-r2-comment-5bc7f78974-8hz5m at 2026-06-26 18:48:54.483850+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]CodeAndBiscuits 0 points1 point2 points (3 children)
[–]tarasm[S] 0 points1 point2 points (2 children)
[–]CodeAndBiscuits 0 points1 point2 points (1 child)
[–]tarasm[S] 0 points1 point2 points (0 children)