1 Reply Latest reply on Feb 23, 2005 6:45 AM by jamesstrachan

    Web tier - App tier separation

    Sriram A Newbie

      Hi,

      Please enlighten me on the merits and demerits of separating the web tier and app tier (on separate machines) for scalability of an application. If in a scenario, I have multiple web servers running and the request processed by a smaller cluster of app servers, can I anticipate degradation in performance?

      We are using JBoss 4.0

        • 1. Re: Web tier - App tier separation
          jamesstrachan Newbie

          Hi.

          If anybody has firm metrics on this, they are keeping them to themselves.

          There are definite advantages in introducing an application tier. It allows you to set up entity beans representing validation data (see your other query) which greatly reduces the load on the database and thus response times.

          The disadvantage of a separate application server tier is that you introduce network I/O on all calls between the two tiers.

          The disadvantage of deploying the application server with the web tier level is that each web server will keep its own copy of entity beans, and will incur some I/O and database effort to keep it up to date.

          Which disadvantage is larger will depend on the exact circumstances.

          One possible solution is to deploy in two tiers, and then to put a cache in the web tier that minimises calls to the application tier.

          I can let you have code for validation data, and the associated cache, if this would be helpful to you.


          James Strachan