answersLogoWhite

0


Best Answer

The easiest way to explain this is, as you suggest, by an example. So I'll give you an example.

Let's suppose I'm going to write a piece of software that students at a school can use to find out what their current grade is in all their classes. I structure the program so that a database of grades resides on the server, and the application resides on the client (the computer the student is physically interacting with).

When the student wants to know his grades, he manipulates my program (by clicking buttons, menu options, etc). The program fires off a query to the database, and the database responds with all the student's grades. Now my application uses all this data to calculate the student's grade, and displays it for him.

This is an example of a 2-tier architecture. The two tiers are:

1. Data server: the database serves up data based on SQL queries submitted by the application.

2. Client application: the application on the client computer consumes the data and presents it in a readable format to the student.

Now, this architecture is fine, if you've got a school with 50 students. But suppose the school has 10,000 students. Now we've got a problem. Why?

Because every time a student queries the client application, the data server has to serve up large queries for the client application to manipulate. This is an enormous drain on network resources.

So what do we do? We create a 3-tier architecture by inserting another program at the server level. We call this the server application. Now the client application no longer directly queries the database; it queries the server application, which in turn queries the data server.

What is the advantage to this? Well, now when the student wants to know his final grade, the following happens:

1. The student asks the client application.

2. The client application asks the server application.

3. The server application queries the data server.

4. The data server serves up a recordset with all the student's grades.

5. The server application does all the calculations to determine the grade.

6. The server application serves up the final grade to the client application.

7. The client application displays the final grade for the student.

It's a much longer process on paper, but in reality it's much faster. Why? Notice step 6. Instead of serving up an entire recordset of grades, which has to be passed over a network, the server application is serving up a single number, which is a tiny amount of network traffic in comparison.

There are other advantages to the 3-tier architecture, but that at least gives you a general idea of how it works.

Incidentally, this website is a 3-tier application. The client application is your web browser. The server application is the ASP code which queries the database (the third tier) for the question-and-answer you requested.

I hope that helps!

ANKUR MISHRA

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between Two tier architecture and Three?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the relationship between MVC and 3-tier architecture?

At first glance, the three tiers may seem similar to the model-view-controller (MVC) concept; however, topologically they are different. A fundamental rule in a three tier architecture is the client tier never communicates directly with the data tier; in a three-tier model all communication must pass through the middle tier. Conceptually the three-tier architecture is linear. However, the MVC architecture is triangular: the view sends updates to the controller, the controller updates the model, and the view gets updated directly from the model.


What is the Model View Controller Design Pattern?

The Model-View-Controller architecture compartmentalizes the data and business logic (model) from the presentation (view) from the user action interpreter (controller). This pattern is the hardest on the exam. The idea is closely related to the recent move from two-tier to three-tier architectures. The 3 tiers in a MVC Architecture of a J2EE Application are: 1. Model - Usually JavaBeans 2. View - Usually JSPs 3. Controller - Usually Servlets This pattern is a clear functional separation of roles. It is a formalization of the data-business-presentation movement that dominated three-tier architectures over the last decade. This pattern is very abstract. It is not simply a front end to a datasource connection. This would be like an automobile. The speed of a car is affected by the accelerator pedal (Controller), the speed is shown by the speedometer (View), and the speed is determined by the engine power (Model).


What is web application and enterprise application?

gdg Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the user to carry out complex activities) and a Data Service tier (which allows data storage and retrieval). An application that conforms to the Java 2 Platform Enterprise Edition specification. publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.exp.doc/info/exp/glossary.html Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the user to carry out complex activities) and a Data Service tier (which allows data storage and retrieval). An application that conforms to the Java 2 Platform Enterprise Edition specification. publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.exp.doc/info/exp/glossary.html Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the user to carry out complex activities) and a Data Service tier (which allows data storage and retrieval). An application that conforms to the Java 2 Platform Enterprise Edition specification. publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.exp.doc/info/exp/glossary.html


What is a word for performing at high level?

class-leading performance / top-tier performance / advanced performance


How do you print a pyramid of numbers C plus plus?

#include<iostream> #include<vector> #include<string> #include<random> #include<ctime> void print_pyramid (const std::vector<int>& v) { size_t tiers {v.size()}, spaces {1}, row {1}; while (tiers > row) { tiers -= row++; ++spaces; } tiers = spaces + 1; std::vector<int>::const_iterator i=v.begin(); for (size_t tier=0; tier!=tiers; ++tier) { if (spaces) std::cout << std::string(spaces--,'\t'); for (size_t num=0; num!=tier && i!=v.end(); ++num) std::cout << *i++ << "\t\t"; std::cout << std::endl; } } int main() { std::default_random_engine generator ((unsigned)time(0)); std::uniform_int_distribution<int> distribution (1,100); for (size_t loop=0; loop!=5; ++loop) { size_t max = distribution (generator); std::vector<int> v; v.reserve (max); for (size_t i=0; i!=max; ++i) v.push_back (distribution (generator)); print_pyramid (v); } }

Related questions

Difference between juniper firewall and checkpoint firewall?

Difference between Checkpoint and Juniper Firewalls: Juniper follows two-tier architecture whereas Checkpoint follows three-tier architecture. Juniper uses the concept of Deep inspection process where as the checkpoint uses the stateful inspection process. Juniper uses the concept of Zones whereas Checkpoint do not use.


What is the relationship between MVC and 3-tier architecture?

At first glance, the three tiers may seem similar to the model-view-controller (MVC) concept; however, topologically they are different. A fundamental rule in a three tier architecture is the client tier never communicates directly with the data tier; in a three-tier model all communication must pass through the middle tier. Conceptually the three-tier architecture is linear. However, the MVC architecture is triangular: the view sends updates to the controller, the controller updates the model, and the view gets updated directly from the model.


What is three tier architecture?

In 3 tier architecture, client directly interacts with intermediate server and intermediate server will directly interact with database server.


What is Three tier architecture dbms?

In 3 tier architecture, client directly interacts with intermediate server and intermediate server will directly interact with database server.


What are the three tiers in a 3-tier architecture?

Client, Middleware, Server


What is 2 tier architecture in PHP?

Client-Server model is a form of 2 Tier architecture in PHP. With use of database it becomes a 3 Tier architecture


What is the difference between 1st tier capital 2nd tier capital annnd 3rd tier capital?

just different capitals


Does PHP follow 3-tier architecture?

PHP is a scripting language and does not follow a 3-tier architecture. However, there are several popular frameworks which follow the MVC architecture:Zend FrameworkCakeSymfonyCodeIgniter


What is a single tier architecture in net?

In single tier architecture, a single executable file handles all functions related to user,business and data services.like the case of PASCAL,COBOL.


What is the key distinguishing difference between a tier-1 isp and a tier-2 isp?

A tier-1 ISP connets to all other tier-1 ISP's; a tier-2 ISP connects to only a few of the tier-1 ISPs. Also a tier-2 ISP is a customer of one or more tier-1.


Difference between tier1 tier2 tier3 company?

In Automotive manufacturing a Tier 1 contracts and supplies material / parts direct to an OEM ( Original Equipment Manufacturer), A Tier 2 sells to the Tier 1 and the Tier 3 sells to the Tier 2.


What is single-tier architecture?

Single-tier architecture is the notion of having the user interface of a web application, the middle ware and the data access all contained in one whole architecture. Usually in Software Engineer you break your application to make them more maintainable and sustainable. If you know that your software will not grow over time, you may want to do a single tier architecture.