Click here to Skip to main content
15,998,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am going to build a web application. Can anyone tell me please, which architecture will be best for performance point of view.

for business layer and data access layer should i use seprate project as class library or i should put the code into app_code folder.
Please give me any Idea, thanks
Posted

1 solution

I am going to build a web application. Can anyone tell me please, which architecture will be best for performance point of view.
It depends on kind of application you are building. Scalability, flexibility and application type would lead you to different architectures.

for business layer and data access layer should i use seprate project as class library or i should put the code into app_code folder.
General case would be to have separate projects for BL & DAL. This would give you option to deploy them separately if needed and also shield DAL from UI.
But again, based on type of project, if it's a simple small app, you can go ahead with classes in App_Code folder. Though, considering a standard business application, it would be suggestible to keep them separate.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 10-Jan-11 2:19am    
Well, reasonable - a 5.
Pardeep Dhiman 12-Jan-11 0:41am    
thanks for your suggestion.
Is there any performance difference between both of these strategy.
Kasson 12-Jan-11 1:01am    
The Business layer will have business logic components.

The DataAccess layer will have data access components.
So use System.Data.SqlClient

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