Hosting a multithreaded mvc application in AppHarbor

I am creating a simple Restful service to aggregate data from 3 external services. I am planning on calling each external service in my thread. Do I need 3 different AppHarbor workers for me ? What if I decide to collect data in the background every x times and store it on my server. Do I need a background worker?


source to share

1 answer

You can deploy multiple threads from a single worker, so you only need one. AppHarbor background workers can be used to perform intermittent tasks, the easiest way to achieve this is to simply sleep the thread between runs.



All Articles