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
4 answers

Three tier architecture question

I have an ASP.NET app with a three layer architecture: Presentation layer: ASP.NET Bussiness Layer: C# library. Data Access Layer: C# library with ADO.Net Entity Framework objects. Some methods on Bussiness layer would return ADO.NET entity…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
1
vote
3 answers

WCF—How many methods are too much?

I am currently developing an application which by design has a three-tier architecture. It is composed of an administration website, a WCF webservice and a database. Of course, the website doesn't directly connect to the database, so that all…
DotNetStudent
  • 889
  • 9
  • 24
1
vote
1 answer

What are the architecture tiers of a Spring Boot + React + MySQL application?

I am trying to write a documentation on the app and I am confused on how to describe the architecture. From the research I made, I think the presentation tier is my React application, the Business/Application tier is the Spring Boot application and…
1
vote
1 answer

Need for a domain model in a service in 3 tier architecture?

I am building an API Rest with Spring Boot and I would like to clarify a concept about my architecture, to see if the community can help me. Imagine that in my database I have a table called Person. I am mounting an architecture based on three layer…
Mr. Mars
  • 762
  • 1
  • 9
  • 39
1
vote
1 answer

How to Create Search using Three Tier Architechture

So I'm trying to create a search using three tier and there aren't many good examples online so i tried it out to see if I can make it work but it just won't work for some reason. Can you please look at my code and see what I'm doing wrong? Stored…
Jed
  • 11
  • 3
1
vote
1 answer

How to add values in remaining columns of specific DataTable row?

I have created Restful API (JSON based API) for android application by using asp.net and SQL server. I am succeed in performing the CURD operations from android app to sql server database via Restful web service by following this link:…
Iqraa
  • 385
  • 1
  • 6
  • 18
1
vote
2 answers

Three-Tier Architecture: Get All Data and Validations

The project I am working is 'University Management System' and it's a big one. Right now, I am implementing the student registration section that works fine (A small portion of the project). I've used 'Three-Tier Architecture' and 'ORM - EF' in…
AT-2017
  • 3,114
  • 3
  • 23
  • 39
1
vote
1 answer

How do i use a dependency for Servlet?

i have a businessLogic layer and I want to use it in servlet , but anything I do it's throws me an error @WebServlet("/Servlet") public class Servlet extends HttpServlet { private static final long serialVersionUID = 1L; IPersonService…
joesid
  • 671
  • 1
  • 10
  • 21
1
vote
2 answers

SQL Access for web apps

Background: Our team is building an inhouse Intranet web application. We are using a standard three layer approach. Presentation layer (mvc web app), Business layer and data access layer. Sql database is used for persistence. Web app / iis…
Mark
  • 2,175
  • 20
  • 23
1
vote
1 answer

Dropdownlist DataSource to Value Object

My application is built with three-tier architecture. However, I want the dropdownlists to data source to the Value Object class. Currently I am data sourcing the dropdownlists from Data Access Layer -> Business Logic Layer -> Presentation Layer.…
Jeano Ermitaño
  • 169
  • 3
  • 17
1
vote
2 answers

Three Tier Application

In a 1 tier application i.e Mvc, you get a folder called models and you build and store your classes in there, I'm aware when it comes to a three tier application from what I have read it seems correct to store the models inside the business layer…
Code Ratchet
  • 5,758
  • 18
  • 77
  • 141
1
vote
0 answers

Using a Three-Tier Architecture with Sensitive Data

I have heard thoughts that using a three-tier architecture is the best practice for web applications that need to be secured. My understanding of this architecture is as follows: Web Tier Servers - Field requests and communicate with a middle layer…
Produk
  • 11
  • 1
1
vote
4 answers

Serializing complex EF model over JSON

I have done a lot of searching and experimenting and have been unable to find a workable resolution to this problem. Environment/Tools Visual Studio 2013 C# Three tier web application: Database tier: SQL Server 2012 Middle tier: Entity Framework…
Dave Parker
  • 624
  • 6
  • 16
1
vote
1 answer

Three-tier architecture and controller

For my application i used an architecture Three-tier, with a service/presentation level, business and datalayer. Now i want use web api(without MVC, only controller). Then i think to use a controller like a service, and mantain business and…
user3401335
  • 2,335
  • 2
  • 19
  • 32