Re: OFbiz/Tomcat vs Ofbiz/Tomcat/Apache to serve static resources

2023-01-26 Thread Michael Brohl

Hi Giulio,

I guess that you will be using an Apache Webserver before OFBiz' Tomcat 
anyway, right?


There will always be an overhead if you serve ressources through the 
route client - Apache Webserver - Apache Tomcat - client because of the 
proxy handling between Webserver and Tomcat.


How significant this is for your scenario can best be checked through 
load testing like Taher suggested.


It costs nothing an is easy to setup to serve static content directly 
through the Webserver so we do this in all our production systems.


The above does not apply if Tomcat will be used standalone without any 
Webserver in front of it.


Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 24.01.23 um 10:38 schrieb Giulio Speri - MpStyle Srl:

Hello everyone,

I hope I found you all well!

I would like to ask you an opinion regarding serving static resources of a
website powered by OFBiz.

We are going to perform a system upgrade (from Ofbiz 13.07.03 to latest)
and we are evaluating who should serve the static resource: now they are
served by Apache Web Served who acts like a proxy in front of OFBiz
application.

Since Tomcat webserver has been upgraded and improved over the years
(version 13.07 is shipped with Tomcat 7) could it be worthy to make it
serve the static resources or having an Apache Web Server in front is still
a better (for performances) solution?

The website involved is an e-commerce site, so there are periods of quite
high traffic load.

What do you think about it?

Thank you all in advance and have a great day ahead,

Giulio




Re: OFbiz/Tomcat vs Ofbiz/Tomcat/Apache to serve static resources

2023-01-25 Thread Paul Mandeltort
The modern solution here use an edge caching/CDN solution like Cloudflare 
images or AWS Cloudfront.  

—Paul, Marco Specialties Inc. 

> On Jan 24, 2023, at 4:38 AM, Giulio Speri - MpStyle Srl 
>  wrote:
> 
> Hello everyone,
> 
> I hope I found you all well!
> 
> I would like to ask you an opinion regarding serving static resources of a
> website powered by OFBiz.
> 
> We are going to perform a system upgrade (from Ofbiz 13.07.03 to latest)
> and we are evaluating who should serve the static resource: now they are
> served by Apache Web Served who acts like a proxy in front of OFBiz
> application.
> 
> Since Tomcat webserver has been upgraded and improved over the years
> (version 13.07 is shipped with Tomcat 7) could it be worthy to make it
> serve the static resources or having an Apache Web Server in front is still
> a better (for performances) solution?
> 
> The website involved is an e-commerce site, so there are periods of quite
> high traffic load.
> 
> What do you think about it?
> 
> Thank you all in advance and have a great day ahead,
> 
> Giulio
> 
> 
> -- 
> Giulio Speri
> 
> 
> *Mp Styl**e Srl*
> via Antonio Meucci, 37
> 41019 Limidi di Soliera (MO)
> T 059/684916
> M 347/0965506
> 
> www.mpstyle.it



Re: OFbiz/Tomcat vs Ofbiz/Tomcat/Apache to serve static resources

2023-01-24 Thread Taher Alkhateeb

Hi Giulio,

I think your best bet to answer this question is not to do get a theoretical 
answer but rather to do testing yourself under load and then check performance. 
Nothing beats an actual test IMHO. 

So perhaps use a tool like apache JMeter combined with some scripting to 
facilitate stress-testing both configurations. This would give you the most 
accurate result that also happens to measure things against your _actual_ 
network configuration and all other details that are only specific for your 
envionrment (e.g. other micro-services, load-balancers, etc ...).

I hope this might be useful.

Regards,

Taher

On Tuesday, January 24, 2023 12:38 +03, Giulio Speri - MpStyle Srl 
 wrote:
 Hello everyone,

I hope I found you all well!

I would like to ask you an opinion regarding serving static resources of a
website powered by OFBiz.

We are going to perform a system upgrade (from Ofbiz 13.07.03 to latest)
and we are evaluating who should serve the static resource: now they are
served by Apache Web Served who acts like a proxy in front of OFBiz
application.

Since Tomcat webserver has been upgraded and improved over the years
(version 13.07 is shipped with Tomcat 7) could it be worthy to make it
serve the static resources or having an Apache Web Server in front is still
a better (for performances) solution?

The website involved is an e-commerce site, so there are periods of quite
high traffic load.

What do you think about it?

Thank you all in advance and have a great day ahead,

Giulio


--
Giulio Speri


*Mp Styl**e Srl*
via Antonio Meucci, 37
41019 Limidi di Soliera (MO)
T 059/684916
M 347/0965506

www.mpstyle.it


OFbiz/Tomcat vs Ofbiz/Tomcat/Apache to serve static resources

2023-01-24 Thread Giulio Speri - MpStyle Srl
Hello everyone,

I hope I found you all well!

I would like to ask you an opinion regarding serving static resources of a
website powered by OFBiz.

We are going to perform a system upgrade (from Ofbiz 13.07.03 to latest)
and we are evaluating who should serve the static resource: now they are
served by Apache Web Served who acts like a proxy in front of OFBiz
application.

Since Tomcat webserver has been upgraded and improved over the years
(version 13.07 is shipped with Tomcat 7) could it be worthy to make it
serve the static resources or having an Apache Web Server in front is still
a better (for performances) solution?

The website involved is an e-commerce site, so there are periods of quite
high traffic load.

What do you think about it?

Thank you all in advance and have a great day ahead,

Giulio


-- 
Giulio Speri


*Mp Styl**e Srl*
via Antonio Meucci, 37
41019 Limidi di Soliera (MO)
T 059/684916
M 347/0965506

www.mpstyle.it