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

In a three-layered architecture, where is the DAO pattern located?

In a three-layered architecture, where is the DAO pattern located? Is it in the business logic layer or in the data layer?
Claudia
  • 87
  • 1
  • 1
  • 5
0
votes
1 answer

Three-tier architecture , ioT device in presentation layer?

Its probably a strange question but iam asking myself where to put a ioT device in an architecture design when i have a three tier architecture. Presentation, Business-Logic, Data Now a webapplication is in presentation layer. application server =…
Khan
  • 1,418
  • 1
  • 25
  • 49
0
votes
2 answers

how to transfer business rules to new data base in 3-tire Architecture?

as we know that 3-tire Architecture consist of Presentation tier , business logic and data base tier the business rules (like : stored procedures , triggers ...) are stored in data base tier , so when we want to replace the data base engine (like…
Radi
  • 6,548
  • 18
  • 63
  • 91
0
votes
1 answer

Does AutoMapper rewrite configuration?

I'm creating three-layered application, based on Entity Framework and AutoMapper. I have DAL, BLL and Presentation layer. Here are my Entities for data access layer: [Table("Person")] public class Person { [Key] public virtual long Id { get;…
Dmitriy
  • 339
  • 2
  • 14
0
votes
0 answers

difference of add sql file and sql project in visual studio

I have an huge web project with 3 layer (UI,business logic, data access layer). I need to add sql database to it. There are two ways to do it: 1- Add Database Project like this: 2- Add sql database like this: Which way is better? Thanks.
Ali Soltani
  • 9,589
  • 5
  • 30
  • 55
0
votes
0 answers

Solution design for logging in UI layer

I have standard 3 tier (physical) infrastructure architecture - UI Layer (ASP.NET MVC) WebServices Layer (WCF Services) DB Layer (SQL Server). All the logging should be done in database using Log4net/EnterpriseLib. There is no direct connection…
Subhasis
  • 714
  • 3
  • 14
  • 28
0
votes
3 answers

Can I Use 3-tiers architecture and "MVC" together in Android?

It's my first real android application and i want to begin it using good design patterns because it will be a little big ,so i can manage my code easily . Can I User 3-tiers architecture and "MVC" together in Android ? I used it in ".net" and it…
0
votes
1 answer

Where to put criteria creation code

Where should I put the code to create CriteriaQuery. Should it be in the data access layer or on the services layer.
LonsomeHell
  • 573
  • 1
  • 7
  • 29
0
votes
2 answers

Looking for a non-trivial 3 layered asp.net example

I am looking for an example of an asp.net website(with source), implemented with 3 layer architecture and has some complexities like user authentication and user permissions, etc. . Does anybody know such an example?
Ristovak
  • 491
  • 1
  • 5
  • 10
0
votes
1 answer

Benefits from implementing the presentation layer of a 3layer project using MVC

So what are the benefits from creating a presentation layer (of a 3layer project) using MVC. If you can provide sources that would be nice. Thank you.
Hodyr
  • 53
  • 7
0
votes
3 answers

Check if username/password exists in multiple tables

I am working on a login page. I'd like to check if the username & password exists in the database. I have three database tables : Teams,Organizers,Admins with username & password field in each table respectively. I am implementing the login in…
Enovyne
  • 195
  • 1
  • 7
  • 20
0
votes
2 answers

Three tier architecture in asp.net mvc

I would like to know what does it mean to implement three tier architecture in asp.net mvc? I have seen a lot of posts regarding this, which are mentioned in such a way. But I am so confused with it. Does seperation of MVC Model to another solution…
myfinite
  • 89
  • 2
  • 11
0
votes
1 answer

Helper files inside three tier architecture Asp.Net

I have a project with three tier Implemented. Now I need to add some general helper files to this project. Example - Class to send mails. This helper files will be used all over the project irrespective of data layer or BLogic Layer. Now I am…
None
  • 5,582
  • 21
  • 85
  • 170
0
votes
1 answer

how to enable trace in business layer project or data acess layer projects?

I have 3 projects in a solution, out of which one is data access layer project , another one is reporting project and the main project. How do i enable and veiw tracing in DAL and Reporting Project? I am able to see tracing done in main project.…
tsr
  • 45
  • 1
  • 6
0
votes
1 answer

Unit Testing BLL: mock Repository, UnitOfWork, UnitOfWorkFactory

I need a jump start in testing the methods on my Business layer. Consider the Materials BLL object, how can I test the AddNewMaterial method for it? interface IGenericRepository { TEntity Add(TEntity m); } public interface…
sheamus
  • 3,001
  • 4
  • 31
  • 54