ArticleslgStudy

computer science

Multitier architecture

Multitier architecture is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Multitier architecture rather than just read about it. In short: In software engineering, multitier architecture (often referred to as n-tier architecture or layered architecture) is a client–server architecture in which various levels of software architecture are physically separated. The most common use of multitier architecture is the three-tier architecture, which separates presentation, application processing and data management functions, such as in the case of Cisco's hier…

Multitier architecture — main illustration
Multitier architecture — illustration

Key takeaways

  • Multitier architecture belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Multitier architecture to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Multitier architecture from memory before moving on to harder problems.

Reference excerpt

In software engineering, multitier architecture (often referred to as n-tier architecture or layered architecture) is a client–server architecture in which various levels of software architecture are physically separated. The most common use of multitier architecture is the three-tier architecture, which separates presentation, application processing and data management functions, such as in the case of Cisco's hierarchical internetworking model. Other tiers of separation may include the service layer, business layer, data access layer, and persistence layer. N-tier application architecture provides a model by which developers can modify or add to a specific tier in the software development process instead of reworking the entire application. It is commonly used for small and simple applications because of its simplicity and low cost. In web development, three-tier architecture is often used to describe websites that comprise a front-end web server serving static content and some cached dynamic content, a middle dynamic content processing and generation application server, and a back-end database or data store. In a strict layered system, each layer depends on the layer below it and can exist without the layers above it. In a relaxed layered system, a layer can also depend on all of the layers below it, creating additional couplings between layers. Some multitier architectures use a hybrid approach so that some layers are strict while other layers are relaxed. N-tier architecture may also be implemented with the model–view–presenter pattern. The terms layer and tier are often used interchangeably, although layer is sometimes used to refer to a conceptual software logic structuring mechanism, while tier is used to refer to the physical hardware structuring mechanism for system infrastructure. In this usage, a three-layer solution could be deployed on a single tier, as in the case of an some database-centric architectures called RDBMS-only architecture or in personal workstations.

Layers

Common layers In a logical multilayer architecture for an information system with an object-oriented design, the following four are the most common:

Presentation layer (a.k.a. UI layer, view layer, presentation tier in multitier architecture) Application layer (a.k.a. service layer or GRASP Controller Layer ) Business layer (a.k.a. business logic layer (BLL), domain logic layer) Data access layer (a.k.a. persistence layer, logging, networking, and other services which are required to support a particular business layer) The more usual convention is that the application layer (or service layer) is considered a sublayer of the business layer, typically encapsulating the application programming interface (API) definition surfacing the supported business functionality. The application/business layers can, in fact, be further subdivided to emphasize additional sublayers of distinct responsibility. For example, if the model–view–presenter pattern is used, the presenter sublayer might be used as an additional layer between the user interface layer and the business/application layer (as represented by the model sublayer). If the application architecture has no explicit distinction between the business layer and the presentation layer (i.e., the presentation layer is considered part of the business layer), then a traditional client-server (two-tier) model has been implemented. Some also identify a separate layer called the business infrastructure layer (BI), located between the business layer(s) and the infrastructure layer(s). It is also sometimes called the "low-level business layer" or the "business services layer". This layer is very general and can be used in several application tiers (e.g. a CurrencyConverter). The infrastructure layer can be partitioned into different levels (high-level or low-level technical services). Developers often focus on the persistence (data access) capabilities of the infrastructure layer and therefore only talk about the persistence layer or the data access layer (instead of an infrastructure layer or technical services layer). In other words, the other kind of technical services is not always explicitly thought of as part of any particular layer.. The Data Access layer normally contains an object known as the Data Access Object (DAO). In a strict layered system, each layer depends on the layer below it and can exist without the layers above it. In a relaxed layered system, a layer can also depend on all of the layers below it and not merely the layer directly below it. The relaxed layered system has more couplings and is more difficult to change. Some multitier architectures use a hybrid approach so that some layers are strict while other layers are relaxed.

Three-tier architecture Three-tier architecture is a client-server software architecture pattern in which the user interface (presentation), functional process logic ("business rules"), computer data storage and data access are developed and maintained as independent modules, most often on separate platforms. It was developed by John J. Donovan in Open Environment Corporation (OEC), a tools company he founded in Cambridge, Massachusetts.. Apart from the usual advantages of modular software with well-defined interfaces, the three-tier architecture is intended to allow any of the three tiers to be upgraded or replaced independently in response to changes in requirements or technology. For example, a change of operating system in the presentation tier would only affect the user interface code. Typically, the user interface runs on a desktop PC or workstation and uses a standard graphical user interface, functional process logic that may consist of one or more separate modules running on a workstation or application server, and an RDBMS on a database server or mainframe that contains the computer data storage logic. The middle tier may be multitiered itself (in which case the overall architecture is called an "n-tier architecture").

… excerpt ends here. Continue reading the full article.

Illustrations

Multitier architecture: Overview of a three-tier application.
Overview of a three-tier application.

Worked examples

Example 1 — a first encounter with Multitier architecture

Start with the simplest possible case. Write down what Multitier architecture claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Multitier architecture before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Multitier architecture ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Multitier architecture

In research
Multitier architecture appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Multitier architecture in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Multitier architecture is common in secondary-school and first-year university syllabi. It links to neighbouring topics Architectural pattern (computer science), Distributed computing architecture, Software architecture, so understanding it makes those chapters shorter.
In everyday life
Look for Multitier architecture outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Multitier architecture” →

How to study Multitier architecture in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Multitier architecture means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Multitier architecture out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Multitier architecture in simple terms?

In software engineering, multitier architecture (often referred to as n-tier architecture or layered architecture) is a client–server architecture in which various levels of software architecture are physically separated. The most common use of multitier architecture is the three-tier architecture…

Why does Multitier architecture matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Multitier architecture?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Multitier architecture.

Tags

  • Architectural pattern (computer science)
  • Distributed computing architecture
  • Software architecture
  • Software design
  • Software design patterns
  • Software engineering terminology

Keep exploring