What is the best way to configure a sub-process to use the maximum number of threads?
If by threads, you mean Execution engines, you will want to avoid Subprocess altogether. Each sub-process runs on the same execution-analytics pair as the parent process. This is why a recommended practice according to Appian engineers I've spoken with is to limit processes that spawn large numbers of subprocesses.
a!startProcess and Start Process smart service are better options because they can be executed on a different engine, but they aren't always viable because they can't return PV's to the parent process.
Starting processes via messaging may seem like a viable alternative, but the messaging carries with it so much overhead that it didn't get any recommendations. The general consensus, as I gathered, was to avoid messaging where possible.
Thank you very much for your answer
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.