Separation of tiers
Hi...,
In one of our application, we are thinking to separate the Web Layer(Jsp/JSF) & deploy it on the Web Server , EJB's on the App Server. My question is ,
-what benefits does it provide having such separation?
-When should we decide to separate the web tier from the application server?
- Which web server is stable enough to handle up to 10 thousand hits a day?
Regards,
P
> But what are the benefits of separating the 2 in
> terms of :
> - Having static pages on web server & EJB's on App
> server does make any difference to performance?
Depends on the app and the usage patterns. But it is possible.
> - Security?
You can put the web server in the demilitarized zone and the app server behind the firewall.
> - Industry Standard?
No. Certainly used though.
> But what are the benefits of separating the 2 in terms of :
> - Having static pages on web server & EJB's on App server does make any difference to performance?
> - Security?
> - Industry Standard?
These are architectural design decisions and should be based upon the business/domain requirements of the application. If the architectural design is crappy, then the performance will be crappy. If the design is good, then the performance will be good. The benefits would be discoverd/identified/revealed in the architectural design. And you can't get an architectural design without the application's business/domain requirements.
Some factors to consider are: the content of the web pages, the type of EJB used and the technical design of how the EJB communicate with the web application.
Whether there are benefits to having the web server on a different machine than the application server or not, depends upon how the application is designed, a multitude of possible constraints, and the application's quality-of-service requirements. What are the security requirements? What are the perfomance requirements? What are the maintainability requirements? Scalability requirements? What application server are we talking about? JBoss is nice, Weblogic is better, Websphere is worst, etc.