Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here i have a little confusion because i'am new to 3-tier architecture.


iam thinking that if a webapplication(ex: asp.net empty Webapplication) have

BusinessLogicLayer(classlibrary),DataAccessLayer(classlibrary), that is called 3 tier architecture.

and iam searched in many articles in internet that they are stating that 3-tier architecture can have 1.Asp.net Web Application 2.BusinessObjects 3.BusinessLogicLayer
4.DataAccessLayer But Stil it is called 3 Tier-Architecture.

Here both are called as 3-tier architecture why?. how many projects that can be added to 3 tier architecture.
Posted

You are also confused between layer and tier...
Tier is about the physical distribution of an application - meaning that different parts (like web server, DB server and so on) are located physically in different places...
Layers are about the logical split of your application - and that what you are talking about in your question.
To make it clear a multi-tier application is for sure a multi-layer too, but a multi-layer application not necessarily multi-tier too!
The proper numbering of tiers/layers are irrelevant - it can be called n-tier or 3-tier (n-layer or 3-layer) and all about the same - separation! So do not let the names (numbers) confuse you...
 
Share this answer
 
You can add as many projects as you want. Three tier nomination has nothing to do with number of projects in your solution. It represents the separation of interface classes (your views, pages, forms), business logic (the application rules and entities) and data access layer (your repository, be it database, XML or something else)

In you example above tiers would be
tier 1. Asp.net web pages
tier 2. business objects and business logic
tier 3. data access

I hope this clears the subject a bit.
 
Share this answer
 
Comments
raxhemanth 15-Dec-14 3:22am    
sir if i add
tier 1. Asp.net web pages
tier 2. business objects and business logic
tier 3. data access

If i add Seperate ClassLibrary as BusineessObjcets to the above solution for instance what it is called as tier or Layer.
Sinisa Hajnal 15-Dec-14 6:19am    
Again, it is the meaning of the library rather then its type which determines its tier. I use tier and layer interchangeably, sorry for the confusion. Tier is "correct" word in this context. You could have custom controls library that would be part of presentation layer (tier 1) despite being DLL. The position of the projects depends on its meaning/use, not type.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900