RSB in IIS to handle long running tasks

22 views
Skip to first unread message

Joe

unread,
Mar 12, 2012, 10:55:06 AM3/12/12
to rhino-t...@googlegroups.com
I was thinking about trying to use RSB in my MVC site to handle long running tasks and was wondering if anyone else is doing something similar.

Basically I want to get away from a polling mechanism where I save some data and then have a separate process like a console app running every five minuets or so to check on that data and do some work if it has not already been done.

I want to send a "ProcessData" message after said data is persisted. I am not concerned about replies, so it would be a oneway bus.

A big concern I have is what happens to the process if IIS starts shutting down? Would it be better to spawn a new Task handle the work? (I would still be worried about IIS shutting down).

Joe

Corey

unread,
Mar 13, 2012, 1:48:37 PM3/13/12
to rhino-t...@googlegroups.com
If you are worried about a process going down. I would setup a Windows service with consumers in that service processing your messages. You wouldn't need to have anything running every 5 minutes, it's just listening for messages and processing them as they arrive.
Reply all
Reply to author
Forward
0 new messages