Live data from Hacker News

Make any TypeScript function durable

useworkflow.dev

1–10 of 89 posts

Re: Make any TypeScript function durable

#3
post #2

Of all the syntax options they could've gone with, they settled on what I would say is arguably the worst. If you want a one-liner, decorators are widely used across different languages and Typescript supports them as well.

My bad, this is open telemetry stuff to check the status of your servers, not for vendors to extract as much data as they can from you.

> I'm trying to find how they implemented the "use workflow" thing, and before I could find it I already found https://github.com/vercel/workflow/blob/main/packages/core/s...

> Telemetry is part of the core.

> Yuck.

Re: Make any TypeScript function durable

#4
post #2

Of all the syntax options they could've gone with, they settled on what I would say is arguably the worst. If you want a one-liner, decorators are widely used across different languages and Typescript supports them as well.

Yea but it's a vercel product and they also pushed the 'use server' and 'use client' directives and probably want to build on them.

Re: Make any TypeScript function durable

#5
post #3
post #2

Of all the syntax options they could've gone with, they settled on what I would say is arguably the worst. If you want a one-liner, decorators are widely used across different languages and Typescript supports them as well.

My bad, this is open telemetry stuff to check the status of your servers, not for vendors to extract as much data as they can from you. > I'm trying to find how they implemented the "use workflow" thing, and before I could find it I already found https://github.com/vercel/workflow/blob/main/packages/core/s... > Telemetry is part of the core. > Yuck.

It's on the landing page, there is not even a standalone mode yet, so you can't use it with node.js you need to use with Next.js. All to say, it's just early alpha preview, I would wait the project to mature before considering using it anywhere.

Re: Make any TypeScript function durable

#7
So at it's core this is "just" a toolkit to add automatic retries to functions inside another function? I don't know if the audience Vercel is targetig knows about idempotency as well as they should before plastering all their functions with "use workflow".

I guess in the end it's another abstraction layer for queues or state machines and another way to lock you into Vercel.

Re: Make any TypeScript function durable

#8
Somewhat related since this about "workflows" and not cloud function, but are there any practical benefits to cloud functions other than the fact that it's cheaper for the providers as they don't have to run an entire bespoke runtime for every customer/application?

Re: Make any TypeScript function durable

#9
post #5
post #3

Earlier quoted context omitted.

My bad, this is open telemetry stuff to check the status of your servers, not for vendors to extract as much data as they can from you. > I'm trying to find how they implemented the "use workflow" thing, and before I could find it I already found https://github.com/vercel/workflow/blob/main/packages/core/s... > Telemetry is part of the core. > Yuck.

It's on the landing page, there is not even a standalone mode yet, so you can't use it with node.js you need to use with Next.js. All to say, it's just early alpha preview, I would wait the project to mature before considering using it anywhere.

My bad, this is open telemetry stuff to check the status of your servers, not for the vendor to slurp as much data from you as possible.
Post reply on HN