Questions tagged [three-tier]

The three-tier architecture model is a framework for logical design model; it segments an application's components into three tiers of services that correspond to logical layers of the application.

The three-tier architecture model is a framework for logical design model; it segments an application's components into three tiers of services. These tiers do not necessarily correspond to physical locations on various computers on a network, but rather to logical layers of the application.

A three-tier architecture is a client-server architecture in which the functional process logic, data access, computer data storage and user interface are developed and maintained as independent modules on separate platforms.

The three tiers are usually defined like this:

  • Presentation tier: this is the topmost level of the application. The presentation tier displays information related to such services as browsing merchandise, purchasing and shopping cart contents. It communicates with other tiers by which it puts out the results to the browser/client tier and all other tiers in the network. (In simple terms it is a layer which users can access directly such as a web page, or an operating systems GUI)
  • Application tier (also known as business logic, logic tier, or middle tier): the logical tier is pulled out from the presentation tier and, as its own layer, it controls an application’s functionality by performing detailed processing.
  • Data tier: the data tier includes the data persistence mechanisms (database servers, file shares, etc.) and the data access layer that encapsulates the persistence mechanisms and exposes the data. The data access layer should provide an Application Programming Interface (API) to the application tier that exposes methods of managing the stored data without exposing or creating dependencies on the data storage mechanisms. Avoiding dependencies on the storage mechanisms allows for updates or changes without the application tier clients being affected by or even aware of the change. As with the separation of any tier, there are costs for implementation and often costs to performance in exchange for improved scalability and maintainability.

During an application's life cycle, the three-tier approach provides benefits such as reusability, flexibility, manageability, maintainability, and scalability.

109 questions
1
vote
1 answer

Where do models live in 3-tier architecture

I'm studying about 3-tier architectures and I have an issue to which I can not really seem to find a solution. Eventhough there are a lot of articles on the net about 3-tier architectures, none of them mention data models. Except in the context of…
Christophe De Troyer
  • 2,852
  • 3
  • 30
  • 47
1
vote
1 answer

ComboBox Shows System.Data.DataRow (MVC)

My Combobox does not show me the values in my SQL-Attribute "TimeBlock", instead it shows System.Data.DataRow 5 Times. What is wrong with my code? Code: //DAL: public class DAL{ string ConnectionString = "server=ICSSQL13\\Grupp28,1528;…
1
vote
2 answers

Architecture and packages

In a layered architecture, you have a presentation layer, logic layer and data layer. So far, I've been grouping classes into domain, service and dao packages. This represents the model with POJOs/JPA Entities, the business logic and data access…
James P.
  • 19,313
  • 27
  • 97
  • 155
1
vote
1 answer

Three-tier architecture

I have a mobile application which collects sensor data and processes it before sending it to the server. The server's role is to update or insert data to the appropriate database table, and the database is a central repository where all the data is…
duncanportelli
  • 3,161
  • 8
  • 38
  • 59
1
vote
1 answer

How to load custom packages from inside Django apps into views.py?

I am new to Django and have a little problem with making all the project structure clear and organized and so on.. The MVC stuff in Django is quite easy to use when making a small project. However, when I am trying to get a new layer (application…
0
votes
2 answers

What to return from service to ASP MVC web app?

Right now I have an ASP MVC web application along a Models project, a Service project, an Utilities project, and a few Datastores projects that function as repository for one or more domain models. I'm pretty happy with the separation of each layer…
Jeff Huang
  • 23
  • 2
0
votes
1 answer

GWT three-tier architecture

I am developing GWT based application using JPA as data access layer. My application is required to support three-tier architecture. Main idea is to have HTTP server (Apache) with static content (html/javascript etc.), Web Application server…
lhanusiak
  • 63
  • 1
  • 4
0
votes
1 answer

Creating trapezoid with intended requirement

I want to create a 3D model. I've tried to explain the whole requirement as follows: -top width=4 -bottom width=8 -It should have only four edges. -it should have height segments 4 and width segments 4. Could someone help me implement it in React…
0
votes
0 answers

Delphi FireDAC FDTableAdapter losing or changing property DatSTableName unexpectedly

Documentation is sparse so bear with me. Client / Server application using FireDAC. Server has necessary components including FDConnection, FDSchemaAdapters, FDQueries, etc. Running fine. Client has a datamodule with FDSchemaAdapters,…
CoryB
  • 1
  • 1
0
votes
0 answers

Adding pictures in SQL Server database from Visual Studio using C# (three-tier architecture)

I have been trying to add a picture from the user's PC to my SQL Server database through Visual Studio using C#, but I keep getting some kind of error. Right now I am stuck with an error that says: Non-static method requires a target This is the…
GGs
  • 3
  • 3
0
votes
2 answers

Is it bad to specify "id" and "created_at" values within the FrontEnd app?

I am writing a Flutter application that has a built-in null-safety feature requires me to initialize variables at the creation time or tag it as a nullable variable like below: String? id; DateTime? created_at; Or even on my NodeJS TypeScript…
best_of_man
  • 643
  • 2
  • 15
0
votes
1 answer

Entity Framework tracks change after second update

The application was built on a bunch of asp .net core mvc and entity framework. I have a map with markers on it. I want to change the parameters of a certain object through textboxes. The request from the frontend is written in axios, and it works…
0
votes
1 answer

If a web application provides an API in addition to user interface (GUI), then which tier does the API com under

I have developed a web application which has a GUI (Presentation tier), Servlet classes for processing data (Business Logic Layer) and a RDBMS (Data Tier). Now my application also provides an API for some of its functionality, so when i represent…
Prim
  • 1,312
  • 5
  • 25
  • 51
0
votes
1 answer

Lucene index which tier?

while describing a system having a three tier architecture, which tier would Lucene come under-the Business Logic or the Data Tier?
Prim
  • 1,312
  • 5
  • 25
  • 51
0
votes
4 answers

Where are web services in three-tier architecture in c#

Where are web services typically found in three-tier architecture? What are some guildines for adding a new layer?
user635409