Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Performance of Web Container handling ALL files

Status
Not open for further replies.

alebu

Programmer
Sep 7, 2002
46
Hi!
I have a question about Web Container performance then it is configured and programmed to handle all types of files, not only Dynamic context( such as images, static html's and various binary data ). I am actually interested in someway to get full controll on them, but it will require to handle ALL requests by controller servlet and I really concerned about performance of this way. Can I expect serious lack of performance? Is there some recomendations for this case?
 
You will see a performance hit for running this way, but as long as your web server is fairly quick (ie >= 2 GHz) it will be in the milliseconds, rather than seconds - basically it will be a bit slower, but not by much.

Ofcourse, the easiest way to see is to test it yourself, and run timings against serving files the traditional way, and your way.

--------------------------------------------------
Free Database Connection Pooling Software
 
Thats actually what I wanted to know. Thanks :) And there is another problem with it: Forwarding or including of JSP or ANY other application resource becomes impossible, because redirection anyway goes to the same controller servlet. So is there any way to call JSP directly? For example, using Velocity or any other template engine I can simply render thats template from my controller servlet and return fragment to visitor, because I have access to Templates engine and full controll over it, but with JSP is another situation. JSP Engine is integrated in the Web Container and it is really unclear to me how to use it IN MY WAY. I am also confused with such solution, because I never read about anything like that. I really don't want to use technics that in future will be deprecated or simply unsupported.
 
Why must all requets go via this servlet ? If you tell us why, we may be able to provide a better solution.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top