Hello All,
I’m confused on how and when to use Worker versioning and workflow versioning. Let me explain my problem with example.
I’ve developed a workflow called EXAMPLE. Now do some bugs or some functionality Improvements, I had to change the code of EXAMPLE workflow.
Now If I change the code in EXAMPLE workflow, of course It’ll result in on deterministic error.
So I have two options now:
-
Maintain workflow version so I’ll create a new file called EXAMPLE_V2 and call EXAMPLE_V2 for all new workflow executions. But the drawback of this is I have to maintain multiple duplicate code files. If more new changes come in, I have to maintain more and more duplicate files.
-
**
The other option is Where I have a confusion. The Worker Versioning, Using build Id’s. Now the question is, Even with Worker versioning do I have to maintain both versions of code files? EXAMPLE & EXAMPLE_V2? OR With Worker Versioning Can I make changes in same workflow file? If not what’s the difference between worker versioning and Workflow versioning?
**
And can’t temporal itself handle the versioning by itself…?
It would be good if Temporal itself handles the versioning automatically by itself