How will you determine if the architecture of any web site is of two tier, three tier or multi tier?

Showing Answers 1 - 15 of 15 Answers

Laxmidhar

  • Sep 5th, 2007
 

The architecure of different tire can be dertermind by checking the client and server and database. If there is client and Database is there then the it is two tire. If the web will come i-e application server and database then we considered it as three tire.

laxmidhar

  • Sep 5th, 2007
 

Web application is three tire because of the application server is there and dtabase is there and client is there. So client can communicate to application server and server will communicate the database.

  Was this answer useful?  Yes

Tilak A Varma

  • Sep 26th, 2007
 

I think i am not sure that every webapplication is three tier..No matter if application server or webserver provides some container managed services when deployed..we cannot treat that as a special tier.


Here is one example. We submitted a request to place a bid in xyz.com. so when ever you login to xyz.com your userid and password are validated and if success you are allowed to place a bid and that bid value will be saved in the database(persistend storage ) with respect to your xyz.com's userid(which is unique)

Now this xyz.com webpage(where you are providing username and password) is a front end page and its clear we treat it as one tier. Once you enter username and password, these must be validated and you must get a page to enter the bid value of a particular product.  There are two options, you can validate in the same jsp page or you can use another servlet to validate these user credentials and delegate the request to appropriate page on success.

Here the point is if you are validating the username and password in the same jsp and if success simply storing the bid value into the database which means the frontend page(lets think as a jsp) is directly interacting with database...then we can treat it as a two tier. Incase if this jsp is again talking to other servlet saying..."hey servlet...please validate this user id and password and decide yourselves what ever you want to do if success or failuer? " then simply this servlet will validate and forward to database if success  otherwise it will forward to error.jsp saying invalid username and password..so this can be treated as three tier.

Most of the time two tier is not recommended because..According to Jsp specification..jsp are good to use as presentation purpose but not for controlling and performing bussiness logic..

This is what all I know..please feel free to correct me if I am wrong

  Was this answer useful?  Yes

I hope when we talk about the architecture there will be 2 aspects

1- Server level
2- Application level

According to 1, the server when catagorized into Client,Server and Database(server) then it will be called up as 3 tier architecture. Where as when there exists only Client, Server that holds the Database then it is called as the 2 tier architecture. The 3 tier has implemented since to lessen the burden of the Server and redirects the Database requests to DB Server.

According to 2,the application during its build the frontend design ie, templates and the process which holds the logic are divided and these both(pages) will be connected with a controller(page). This basically called as MVC(MODEL-VIEW-CONTROLLER) architecture.

  Was this answer useful?  Yes

We can decide the architecture depending upon 2 aspects

1. Server level
2. Application level

According to
Server level, the server when catagorized into Client, Server and Database (Server) then it will be called up as 3 tier architecture. Where as when there exists only Client, Server that holds the Database then it is called as the 2 tier architecture. The 3 tier has implemented since to lessen the burden of the Server and redirects the Database requests to DB Server.

According to
Application level, the application during its build the frontend design ie, templates and the process which holds the logic are divided and these both (pages) will be connected with a controller (page). This basically called as MVC (MODEL-VIEW-CONTROLLER) architecture.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions