> From: David Vos [mailto:[EMAIL PROTECTED]] > > We are running a website that provides classic literature in several > different formats (by chapter, pdf, postscript, etc), and we are moving > over to cocoon for better flexibility. The server handles several hundred > thousand hits a day, so performance is an issue. > > As it is, it can take cocoon awhile to process large requests (eg. pdf > format of a several megabyte book). It would be nice to send the user > some kind of "Please Wait" message, and then send them the file when it is > ready. > > One idea that would work for html files would be to send the user an html > file that refreshes itself every 3 seconds. If the requesed file does not > exist, send the message. There is one major problem with this that I > see: If multiple people request the same un-cached file, does Cocoon > spawn multiple processes to build the same file? If so, then the
Yes. You will have to build your own synchronization mechanism to avoid this. Vadim > wait-3-seconds-and-refresh idea could add a pretty nasty load. > > Any other ideas? Or is this just a dumb idea to begin with? : ) > > (I have no idea how to do this with non-html files). > > David --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>