Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practice to build & deploy Temporal workflows

I am using the GO SDK from Temporal, and I was wondering what is the best practice way to package and deploy Workflows.

Can I bundle all my workflows and activities into one Worker service? Is there any limitation by doing this, or is it recommended to deploy/build each workflow separately?

Also I would like to expose http endpoints to trigger the workflows. What is the best practice to do this if I deploy Temporal on Kubernetes (GKE), expose an ingress/service resource?

Thanks!

like image 550
Jerome Avatar asked Mar 05 '26 06:03

Jerome


1 Answers

From the technical point of view, the Temporal doesn't impose any specific requirement on the packaging. It supports a single bundle that contains any number of workflows and activities and it supports deployment of a single activity or workflow type independently.

Treat workflows and activities as long-running operations. Then treat the unit of deployment as a microservice. Then the same logic that applies to microservices applies here. So if collocating workflows and activities together makes sense from the code and operational point of view do it.

like image 133
Maxim Fateev Avatar answered Mar 08 '26 19:03

Maxim Fateev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!