Solved

asp.net Tier architecture

Posted on 2013-01-05
5
322 Views
Last Modified: 2013-01-10
I started out my web app as 3-tier, and had spent a lot of time on it  like this article,  http://www.dotnetfunda.com/articles/article71.aspx. Should I stay with 3-tier or should I move it to 4-tier since not that I found this article?
http://www.dotnetfunda.com/articles/article18.aspx
0
Comment
Question by:VBdotnet2005
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38747611
Depends on your scenario really and whether or not you want to use the classes to represent objects within your application.
0
 

Author Comment

by:VBdotnet2005
ID: 38747672
Would you recommend to use tier either way?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 167 total points
ID: 38747735
Yes tiered architecture in either way is good because it allows you separation of concerns.
0
 
LVL 8

Assisted Solution

by:Crashman
Crashman earned 166 total points
ID: 38747795
I use 4 tier, is recommended separate behaviours from objects, this allow more flexibility.

UI
Entities (Object)
Logics
Data Access
0
 
LVL 10

Assisted Solution

by:P1ST0LPETE
P1ST0LPETE earned 167 total points
ID: 38747962
I recommend using a 4-Tier architecture:

1. It's really not all that more work vs the 3-Tier defined in your link above.

2. Working in the different layers of the application feels much cleaner when you're able to pass around data encapsulated in objects vs passing around a bunch of variables and DataTables.

3. Objects will typically be loaded via a SqlDataReader, which is much faster than loading data into a DataTable or DataSet, especially when dealing with large amounts of data.

4. With ASP.Net, there is lots of built in features that make user input validation easier.  When using these features, you'll typically have BAL objects and DAL objects.  The BAL objects deal with all the validation, and then they map their data to the DAL objects.  This gives clean separation, allowing the DAL to be concerned with nothing more than performing CRUD tasks.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question