Use AsyncActions, and free the IIS worker thread. but actually the even better way of doing that is to put the required job on an *off process* queue (msmq, a DB table, or even a dedicated directory in the filesystem), and tell the user "We're processing your request". The you offload the work to another process, even another machine, and when it's done, you signal the user that he can get the file (you can send an email with a link to the generated pdf, or have the browser ping the server using XHR every couple of seconds)
On Wed, Mar 10, 2010 at 5:30 AM, jake <[email protected]> wrote: > I'm developing a website using monorail and active record that creates > pdf reports for users. One thing that I've encountered is that some > reports take a very long time and I was wondering what the best way to > treat this would be. Currently it just processes while holding up the > browser and there's alot of risk in the user leaving the page or > stopping the process accidentally. Can anyone shed some light on this > situation? thanks > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http://www.musicglue.com http://www.castleproject.org http://www.idcc.co.il - הכנס הקהילתי הראשון למפתחי דוטנט - בואו בהמוניכם -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
