Apache camel and tempral integration

I don’t know anything about Apache camel. But I believe that the code snippet you posted creates the WorkflowServiceStubs and WorkflowClient per request. WorkflowServiceStubs encapsulates a very heavyweight gRPC client. So it has to be created once per process lifetime and reused for all the requests.