Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hey guys ,

I have this doubt relating to 3 tier architecture. I have developed an application and
its having 3 projects in it an asp.net project and two class libraries (BLL,DAL).
BLL is using direct reference(adding reference to the DLL) from DAL and UI is using direct reference from the BI.
When I am hosting , I am placing this all on one server and DB is on another server.
So can my application be refereed as 3 tier or is it 3 Layer?

Also how can I reference these DLL (DAL and BLL) if they are placed on a separate machine? Or Should they be web services?

Thanks in advance!!
Posted

You have to learn the difference between tier and layer...
DAL, UI and so are layers and representing logical separation of the system you designed
Tier on the other hand is about physical separation of the different logical parts of the system...
 
Share this answer
 
Comments
sreesankar89 8-Jun-15 6:07am    
Ya thats what i am asking?
I am trying to achieve the physical separation by keeping them in separate class library.
But still they are deployed in a single pc. Can I deploy these Dlls (DAL and BLL) as such on to separate server machine. How this is achieved?
How to construct a 3 tier architecture then?
Kornfeld Eliyahu Peter 8-Jun-15 6:28am    
If you don't know how to distribute your components (means you do not know how to call some method over the network) you have to pick some books...It's an answer can not be given here - simply too long...
You may start here: http://www.codeproject.com/Reference/617/Useful-Reference-Books
Sergey Alexandrovich Kryukov 8-Jun-15 13:18pm    
That's the point, a 5.
—SA
Kornfeld Eliyahu Peter 8-Jun-15 16:00pm    
Thank you...
You are designing what is called a Layered application if it is on the same installation \ machine.

further reading Chapter 5: Layered Application Guidelines[^]
 
Share this answer
 
Comments
sreesankar89 8-Jun-15 6:08am    
How to construct a Tier architecture?
how do these tier communicate?
Simon_Whale 8-Jun-15 9:29am    
have a read of this https://code.msdn.microsoft.com/ASPNET-N-Tier-WCF-sample-f97ea025
Wastedtalent 9-Jun-15 8:16am    
A very simple approach may be to have each layer in a separate project.

Each layer then provides an interface and an implementation of the interface that the next layer can consume.

The above links will explain in more detail.

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