Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are a few options that I see:</p> <ol> <li><p>Change your servlet app to be configurable as to where the images shall be referenced from (as you talk about performance, this will also enable you to use any CDN (content delivery network) - delivering the images from a completely different host will be even better for performance). In addition to this you'll need to extract the images to some location available to httpd and configure your app to refer to the respective URL.</p></li> <li><p>Use caching on Apache to request the images once from tomcat, then from cache. This will enable you to flush the cache when you deploy an updated version with different images/resources and in general provide the easiest deployment as - once caching is set up properly - you'll only need to update your servlet app and not touch any static-files storage separately. The downside is that your app needs to provide correct cache-related http-headers, but this might also be counted as a positive aspect: it should do so anyway.</p></li> </ol> <p>Disclaimer/comment about the performance requirement: in 95% of cases I see the performance argument to be made before any measurement. Most likely the application is fine performance-wise. And if it isn't, serving the images through Apache will probably not be the most effective way to improve performance. What you might do with these changes is, to improve your appserver's performance by 2%, but downgrade the system administration and -development performance by 10% due to improved configuration/deployment complexity.</p> <p>Apologies if you're within the other 5% and that disclaimer does not apply to your situation, but many others will read this question and I feel it's quite an important aspect to mention. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload