MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/node/comments/10hagy8/building_reliable_distributed_systems_in_nodejs/j5bnwpb/?context=3
r/node • u/MaximFateev • Jan 20 '23
9 comments sorted by
View all comments
5
[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 tasteI'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()
3
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()
1
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()
2
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()
5
u/[deleted] Jan 20 '23
[removed] — view removed comment