Hi
We are doing some performance testing and creating worker with the following code.
service = WorkflowServiceStubs.newInstance();
client = WorkflowClient
.newInstance(service,
WorkflowClientOptions.newBuilder().setNamespace(getJiffyNamespace()).build());
WorkerFactory factory = WorkerFactory
.newInstance(client);
AppProperties appProperties = SpringContext.getBean(AppProperties.class);
Worker worker = factory.newWorker(appProperties.getWorkflowTaskQueue());
WorkflowImplementationOptions wfio = WorkflowImplementationOptions.newBuilder()
.setFailWorkflowExceptionTypes(Throwable.class)
.build();
worker.registerWorkflowImplementationTypes(wfio, JiffyWorkflowImpl.class);
worker.registerActivitiesImplementations(
new CallActivityAsyncImpl(client.newActivityCompletionClient()),
new AssignActivityImpl(),
new EvalActivityImpl());
factory.start();
Do we need to create a pool of workers please suggest, we are creating like nearly 200 workflows per minute