Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6372543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:15:10+00:00 2026-05-25T01:15:10+00:00

I have a web app that current uses an external directory to host static

  • 0

I have a web app that current uses an external directory to host static files, e.g css, velocity, in a Spring webapp. That is, the directory is inside tomcat’s webapp directory but not inside the WAR.

Other than the ability to easily edit these resources without needing to recompile-package-deploy is there any advantage to not including these files inside the war.

I seem to recall being told A LONG TIME AGO that Tomcat had poor performance in serving files static files, but I don’t have any experience that backs this up. As far as I’m aware the only advantage is that of ease of editing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:15:10+00:00Added an answer on May 25, 2026 at 1:15 am

    In general the web server in front of application server pattern is still valid:

    1. web server to provide TLS/SSL termination; clients talk to your URL via HTTPS, the web server terminates SSL and forwards plain HTTP messages to your application server (tomcat). In this scenario the web server can take over the load caused by encryption (CPU utilization)
    2. web server to serve static content; when it comes to high traffic sites or sites serving a large amount of static content, the web server can provide the static content. Think of an application providing a product catalog which contains high resolution images (say > 1m). Downloading images directly from the application server requires one thread on your application server. It also reduces network I/O on your application server node.
    3. web server in Demilitarized Zone (DMZ); a common pattern in enterprise deployments. The web server is hosted in a zone available to the public, whereas your application server is hosted in an internal zone available to the web server only. This introduces another layer of security.
    4. web server to provide static caching; web servers like Apache are doing well when it comes to caching.

    No question, depending on your use case it may look different:

    1. you gain most advantage of the examples provided above if your web server resides on a different server node as it’s about computing power (CPU in this case).
    2. As always distributed computing introduces a layer of complexity, deployment and management in this case.
    3. establishing identical security approaches on both, web server and application server may become tricky, e.g. only certain users are allowed to access certain images.

    Having web server and application server on the same nodes reduces the advantages of providing a web server. My experience is that when it comes to ‘smaller’ internal applications used by ‘a few users’ a web server is not necessary and tomcat serves well. This is especially true if your app only serves some static files like icons, css and javascript.

    Hope this helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web app that uses the Active Directory Membership Provider and when
I have a web app that currently uses the current HttpContext to store a
I have a web app that is heavily loaded in javascript and css. First
I have small web app that generate PDF files as a report. I'm trying
I have a fairly simple web app that uses cookies to store some information
I have a web app that only registered users can use, therefore I should
We have an web app that is talking to Netsuite via Netsuite's web services.
I have a web app that I've recently applied a jQuery ThemeRoller theme to.
I have a web app that lets a client define a daily rate for
We have a web app that we update and release almost daily. We use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.