You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cadence Java client exhibits severe vertical scaling limitations that prevent it from utilizing additional CPU cores and threads beyond a certain point. Despite increasing the number of pollers, executor threads, and concurrency settings, throughput plateaus due to bottlenecks.
Potential problems:
SynchronousQueue Bottleneck in PollTaskExecutor
Location: /src/main/java/com/uber/cadence/internal/worker/PollTaskExecutor.java:54-59
The PollTaskExecutor uses a SynchronousQueue with zero capacity for task handoff:
taskExecutor = options.getExecutorWrapper().wrap(
new ThreadPoolExecutor(
0,
options.getTaskExecutorThreadPoolSize(),
1,
TimeUnit.SECONDS,
new SynchronousQueue<>()));
Activity