Published: October 23, 2025
91
30
1.0k

This is real life ๐Ÿงต ๐šŠ๐šœ๐šข๐š—๐šŒ ๐š๐šž๐š—๐šŒ๐š๐š’๐š˜๐š— ๐šœ๐š’๐š๐š—๐šž๐š™(๐šŽ๐š–๐šŠ๐š’๐š•) { "๐šž๐šœ๐šŽ ๐š ๐š˜๐š›๐š”๐š๐š•๐š˜๐š "; ๐šŠ๐š ๐šŠ๐š’๐š ๐šŒ๐š›๐šŽ๐šŠ๐š๐šŽ๐š„๐šœ๐šŽ๐š›(๐šŽ๐š–๐šŠ๐š’๐š•); ๐šŠ๐š ๐šŠ๐š’๐š ๐šœ๐šŽ๐š—๐š๐š†๐šŽ๐š•๐šŒ๐š˜๐š–๐šŽ๐™ด๐š–๐šŠ๐š’๐š•(๐šŽ๐š–๐šŠ๐š’๐š•); // ๐Ÿคฏ ๐šŠ๐š ๐šŠ๐š’๐š ๐šœ๐š•๐šŽ๐šŽ๐š™("7 ๐š๐šŠ๐šข๐šœ"); ๐šŠ๐š ๐šŠ๐š’๐š

Thereโ€™s so much goodness going on in that little function. ๐šœ๐šŽ๐š—๐š๐š†๐šŽ๐š•๐šŒ๐š˜๐š–๐šŽ๐™ด๐š–๐šŠ๐š’๐š• itself is a reliable step. If the process or server or network died after ๐šŒ๐š›๐šŽ๐šŠ๐š๐šŽ๐š„๐šœ๐šŽ๐š›, the workflow would resume from that point. ๐š๐šž๐š—๐šŒ๐š๐š’๐š˜๐š—

Last but not least, scheduling. ๐šœ๐š•๐šŽ๐šŽ๐š™ is a helper provided by the Workflow Development Kit: ๐š’๐š–๐š™๐š˜๐š›๐š { ๐šœ๐š•๐šŽ๐šŽ๐š™ } ๐š๐š›๐š˜๐š– "๐š ๐š˜๐š›๐š”๐š๐š•๐š˜๐š "; By calling it in your workflow, you can succinctly express computation โ€ฆ from the future.

@rauchg If possible would like to see post explaining about impl I like to understand the โ€œmagicโ€ Instead of just working with โ€œblack boxโ€

@dolevkle ๐Ÿ’ฏ and design decisions. Great prompt. โ€œYouโ€™re absolutely right.โ€ Weโ€™ll cook.

@rauchg will this only work on vercel?

@_fqnn_ It already works self-hosted, with more providers in the works

@rauchg How is the sleep's state persisted across service restarts?

@rauchg What happens if you rotate sendgrid keys 5 days in? Or if you want to send a different email template Youโ€™d need to have a queue in between to decouple the execution environments And if you have a queue system, you might as well use that to schedule these jobs Or is this

@rauchg How do you introspect things waiting in the queue? Do these scheduled tasks transfer to the latest deployment or are they skew protected back to the original the request was made from? Lots of footguns here

@rauchg The most disgusting thing is passing in 7 days as a string ๐Ÿคข

@rauchg brb replacing hubspot with typescript

@rauchg You guys are innovating in the wrong direction!

@rauchg my AI import machine machine.learn()

@rauchg @rauchg some feedback; Notice in a lot of @vercel authored APIs (i.e useSWR and caching apis) duration is never as clean/intuitive as it could be. The gold standard for time durations to me is ISO 8601 which is being incorporated into the Temporal spec. see:

@rauchg First fluid compute, and now ya'll just water bending!

@rauchg One does not simply "use javascript"

Image in tweet by Guillermo Rauch

@rauchg love the idea, but ditch the "use workflow" magic. that's a string not code

@rauchg Looks like Cadence from Uber! Looks awesome!

@rauchg Is this built on top of something like Temporal?

@rauchg Is this temporal based? This was exactly their marketing strategy couple years back

@rauchg workflows are gonna be supported only on vercel right?

@rauchg can you guys add nestjs to your roadmap. i'd love to have that magic in a decorator.

@rauchg I like vercel but directives will make me go elsewhere as soon as I can. I hope BJJ will change you and make you reconsider ๐Ÿคฃ Not that I have to use them, but just knowing you are pushing them is enough ๐Ÿคฎ I will probably die on this hill ๐Ÿ˜‚

@rauchg Wrapping Temporal hard

@rauchg ๐Ÿคฎ

@rauchg You guys did a really good job here, it was worth the wait

@rauchg I mean, this has to then sit in memory somewhere

@rauchg It is not April now as far as I know so this is true. I think ๐Ÿค”

@rauchg Bruh, that's waste of compute

@rauchg Damn - Gotta test this. Fast! โœจ

@rauchg this is crazy cool

Share this thread

Read on Twitter

View original thread

Navigate thread

1/34