Hi, i am new to Temporal! I am assigned to do investigation on temporal.
after some study still need some help from community!
not sure if this can be done in temporal.
I have a 3rd-party payment workflow.
- Fire 3rd-party API for payment
- wait for payment(they callback to our server).
- start delivering goods…
Is it possible to start new workflow and wait for the first activity’s result with sync waiting?
def request_handler Temporal.start_workflow(PaymentWorkflow, user_id: "john0123", amount: 200) # response based on success or failure of first activity end
I see query interface concept in doc. But I still need to poll for it.
And it’s not promised that our workers are fast enough to run the first activity. I can indeed take 3rd api call out of workflow. But placing the activity in workflow is more clear.
I would like to know the best practice to handle this use case.