Information needed by the first page of my application is very complex to compute, so the user has to wait seconds. I want to do better.
Let's say I can pre-compute a reasonable version of each user's data beforehand/every night, and I could stick this info in files somewhere (one file/user).
Now when the user hits the app, the server checks to see if a suitable precomputed version is available. If so, the server wants to return the data
to the requestor.
Obviously my app could go read that file and then use that info to generate the response.
How could I do better than this?
My preliminary investigation uncovered the "sendfile" facility that some web servers provide.
http://wiki.nginx.org/XSendfile
http://wiki.nginx.org/JavaServers
http://blog.lighttpd.net/articles/2006/07/02/x-sendfile
http://tomcat.apache.org/tomcat-6.0-doc/aio.html
This seems like it might be what I should do.
Before I head down that road, are there simpler alternatives?
Can I make jetty do this for me somehow? (without nginx….)
--
You received this message because you are subscribed to the Google Groups "Compojure" group.
To post to this group, send email to compojure@googlegroups.com.
To unsubscribe from this group, send email to compojure+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compojure?hl=en.
