The company I work for is considering the adoption and implementation of Workflow Foundation hosted in IIS for processing data. We are still designing our problem domain but a concern was raised that long running threads aren't ideal inside of IIS. Below are some of the assumptions we are making as Workflow is still a new technology to our group:
We are making a differentiation between a "long running process" and a "long running workflow" where a long running process is actively consuming CPU while a long running workflow is simply persisted for an indeterminable amount of time waiting for additional requests to complete it's work.
My question is: Is it a good practice to create a long running thread as a part of a Window Workflow hosted in IIS or should we implement long running processes outside of IIS by means of a traditional Windows Service?