I built something similar: 1. web site for a user to request a report and view pdf 2. a windows service to generate the pdf 3. I used Rhino.ServiceBus as the transport between the website and windows service. You could also use NServiceBus or MassTransit instead of RSB.
Something to remember though. when the website is consuming a message from the webservice you will not have access to asp.net (cache, session, etc). so you will need to store the results of the message somewhere so the controller can access that information when necessary. I have used a static cache object for this. a database (rdbms or document) would also work well. On Mar 10, 12:12 am, Ken Egozi <[email protected]> wrote: > 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/bloghttp://www.delver.comhttp://www.musicglue.comhttp://www.castleproject.orghttp://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.
