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
0
votes
1 answer

Looking for answers in an inherited N-Tier Application

I have inherited an n-tier application and I would like some explanation of its way of grouping files. I guess BAL is the BUSINESS ACCESS LAYER DAL is the DATA ACCESS LAYER Any guesses for EAL? Anyone have any idea what EAL is? Also, why would the…
xarzu
  • 8,657
  • 40
  • 108
  • 160
0
votes
1 answer

MVC pattern vs Three tier - where does logic belong to?

I am trying to introduce some good practices into my website coding, so I started to look into MVC, since it is a buzzword in website designing :-) I am confused by the MVC pattern though. I am used to thinking in a Three-tier pattern, where you…
Tomas
  • 57,621
  • 49
  • 238
  • 373
0
votes
1 answer

Need help in GUI Layer while inserting value

I am entering customer details in my web page, in that fields are Customerid, Customername, ProductName, Quantity, Rate, Total, Discount, NetTotal. If i enter quantity and rate in respective field in application. All the field should entered…
sumit
  • 21
  • 2
0
votes
2 answers

How To Access Namespace Created In Any Folder Into Code Behind For C#

I have created a folder in my website in asp.net C# usindg VS'10 ,, Now i added a class into that folder with namespace as under: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ThreeTierSample.BLL { …
Dilip Suvagiya
  • 396
  • 1
  • 4
  • 14
0
votes
0 answers

Three-tier architecture system with Android clients without REST

I want to create web-based application which interacts with Android clients. Clients are using non reliable connection thru EDGE/GPRS, with very limited amount of transfer, so I wanted to avoid using REST with all this HTTP protocol overhead. I've…
rzezimierz
  • 13
  • 2
0
votes
1 answer

Entity gets detached when should be managed

Consider Controller-Service-Repository arch. Successful method in TokenService declaring that I am correct to the point. @Transactional public Token getByString(String tokenString) { Token t = tr.loadTokenByString(tokenString); …
Aubergine
  • 5,862
  • 19
  • 66
  • 110
0
votes
1 answer

Three tiers select date from two tables

I have tried googling a lot of things, but couldn't find the answer - so I was hoping somebody could help me out! What I'm trying to do: On my winform application I need to select the computername through a combobox, upon selection, my listbox will…
RunnicFusion
  • 193
  • 1
  • 3
  • 12
0
votes
1 answer

Best practice to inherit business logic

I'm building a three tier application such as DAL, BLL, UI layers. DAL expose an EF wrapper (UnitOfWork and Generic Repository pattern). BLL component is a DAL wrapper with some basic business logic rules. Essentially, BLL expose a…
bit
  • 934
  • 1
  • 11
  • 32
0
votes
2 answers

ASP.NET Three Tier

I want to develop an application based on ASP.net and Oracle using three tier architecture where the data access layer will be kept on a totally different server(Linux). I posted a question before and some people suggested me to use General asp and…
Rahbee
0
votes
1 answer

Proper 3 Tier architecture?

I know that three tier contain PL , BL and DL. Working on one, in that application we are "passing values as parameter from PL into BL and after calculation into DL which perform DB operations." Is this the right way to implement 3 Tier? or the…
syed mohsin
  • 2,948
  • 2
  • 23
  • 47
0
votes
2 answers

how to update and delete datagridview in c#?

i am beginner in c# and using three layer programming. i can not update or delete records via data grid view. following is my codes. please help me. DAl namespace DAL { public class TblkalaDal { SqlConnection cn=new…
samira
  • 1,305
  • 10
  • 37
  • 58
0
votes
1 answer

Using Spring Security in a three-tier architecture

I'm trying to understand how Spring Security works in a three-tier architecture. Assuming the system is composed of: WEB <--> APP <--> DB And that the users are defined in the DB tier. How would I implement it in the application? From my…
RonK
  • 9,472
  • 8
  • 51
  • 87
0
votes
3 answers

Trying to return rows between a given id and the same id + offset, where should most logic go to determine how to retrieve the data?: BLL or DAL

In my database I have a table called ThingsInACircle. Every time a Thing is added to the ThingsInACircle, it gets added with a ThingId that is auto incremented. Imagine the Things in this table as being in a circle. SELECT Thing FROM ThingsInACircle…
Matt
  • 5,249
  • 12
  • 40
  • 45
-1
votes
1 answer

What does "Cannot set property 'getStrokeStyle' of undefined" mean for a Three.js program?

I'm using SVGloader to load an SVG so I can map it on my OBJ file. But when gave it url to the svg file it generates an error TypeError:Cannot set property 'getStrokeStyle' of undefined I'm using Angular 8 and rendering a Obj file using THREE.js.…
-1
votes
1 answer

Correct use of OOP in a three-layered c# asp.net database application

I'm starting C# and would like to know if there is any problem in approach below: Briefly, in the layers there would be instances similar to the following: UI var userBll = _userBll.SaveUser(dtoUser); BLL // Validations and other business…
Marcoscdoni
  • 955
  • 2
  • 11
  • 31