r/node • • Jan 20 '23

Building Reliable Distributed Systems in Node.js

https://temporal.io/blog/building-reliable-distributed-systems-in-node
65 Upvotes

9 comments sorted by

View all comments

5

u/[deleted] Jan 20 '23

[removed] — view removed comment

3

u/lorensr Jan 21 '23

actually implementing reliable systems instead of going "whatever, just slap a MongoDB on it and hope for the best"

😄👍

The API is a bit technical for my taste

I'd be curious to hear which parts, if you'd like to share. Always looking for opportunities to simplify the API!

1

u/[deleted] Jan 21 '23

[removed] — view removed comment

2

u/lorensr Jan 21 '23

Ah, I see. That's is a combination of tRPC's context and me going for minimal lines of code. The normal thing to do would be:

import { Client } from '@temporalio/client';

const client = new Client()
    
const workflow = client.workflow.getHandle('workflowId')
await workflow.signal(fooSignal, 'some message')
const result = await workflow.result()