Hi, New to the forum and new to Scala/Lift. In a previous Ruby Rails project, I needed to generate some PDF files on the fly in response to a user clicking a link. For that, I passed the task off the a worker with BackgroundRb so that the mongrel instance would not be tied up for a long time. I then used Ajax calls to update the user's webpage when the pdf was ready.
I'm considering Scala/Lift for my next project but am unclear how something like this would be done. I've read about Actors and concurrency but the examples I've seen have been for passing simple message (stock quotes or something) and not for starting a long running process like connecting to a MySQL DB and generating a PDF report. Should I even be looking at Actors for this? Is Comet that is integrated into Lift a possibility? Basically, how does something (not necessarily PDF generation, but any long running process that user could request) like this get done with Lift/Scala? I'm thinking I would have to have Scala use the IText pdf library perhaps. I don't need to have thousands of background threads generating PDFs, but it should be able to handle say 50 before it starts queueing up the PDF requests (ie, I don't want a simple first in first out as that could take to long for the user to get results). Thanks for you advice and patience with newbie questions. Rogelio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---