Hi there. Noobie here. I just read parts of the documentation, did some of the tutorials, and finished course 101 based in Java. All examples are simple, so my doubt is about Workers and their lifecycle. Are they instantiated to handle only one type of Workflow? Do they handle activities concurrently or just one at a time? What would be the usual or recommended way of deploying them? Building a container image per worker and deploying them as pods in a K8S cluster? Please advise. Thanks.
1 Like
Are they instantiated to handle only one type of Workflow?
No. A single worker can execute any number of workflow types.
Do they handle activities concurrently or just one at a time?
Concurrently, according to the configured limit. You can configure the limit to 1, which means one at a time.
What would be the usual or recommended way of deploying them? Building a container image per worker and deploying them as pods in a K8S cluster?
Temporal is not opinionated on this issue as workers are part of your application. Deploy them the same way as you deploy all other code. K8s is indeed frequently used.
1 Like