When i was in 10th, along with the computer, programing language ''C" was also introduced to me. I learn it, wrote codes , executed. But i did not know how useful it would be ! But now in a ship, with Bugs , i know how it belongs to me. OK, I coded all of my code in a single page in a single class for a quite long time, nearly 8 years. But some years back when someone asked me to write code in different pages, classes and when they talked about the architecture , the boy he was in 10th came back, yes he did not know why and how to do that . This is for such boys.
Now, i would like to talk about only one kind of architecture :- an "N-tier architecture" one. Because i don't know about others. Eventually i will add others also. Ok, Lets come back to our topic. N-tier architecture.
OK lets start with a 3-Tier. That is the most common and most used architecture. In three tier architecture, application is separated physically into various tiers such as Presentation tier, Business Tier, and Data Access Tier. Each tier is a separate assembly.
Now look into the following diagram. It has 5 parts. Three different layers , a Database and a part which is common for every layer(We Can call them common objects)
1) Presentation Tier:
Presentation Tier contains graphical display components and files such as ASPX, ASCX, Master pages, Style Sheets, and so on. Usually “Presentation Tier” is a web site or web application. All ASPX or ASCX pages contain HTML design where we add asp.net controls like buttons, textboxes, data controls, validation controls and so on. And all these aspx/ascx pages contain code behind files where we write the page specific code like filling drop downs, binding data controls, validating input data etc.
2) Business Tier:
Business tier is a class library project with set of classes that are converted into DLL and added as reference in the actual application. It presents data to the higher layers like UI and talks to the Data Access Layer to fetch data.
3) Data Access Tier:
Data Access Tier is a C# class library consisting of set of classes used to encapsulate data access methods like CRUD (CREATE, READ, UPDATE, and DELETE) operations as well as a set of methods to communicate with data store.
4) Common Objects
These are common to all layers. It does the works like passing data from one layer to another,control logging, handle exceptions, security etc.
Please go through each topics to know more about each and how to code it.
renjith
There are various definitions of architecture. One such is, “Architecture is a blue print for application development.” We can develop many similar applications using the same “blue print” once it is implemented successfully in one application.
Often an architecture, which is not suitable for an application may be good for the other. Today, there are numerous kinds of architecture recommended for software development -
- N-tier architecture
- SOA architecture.
- Plug-in architecture
- DNA architecture and so on.
Architecture is independent of any particular platform or language; it depends specifically as per the system requirements. An architect who designs the architecture would create it based on the client requirements by keeping the following goals in mind.
- Readability
- Scalability
- Maintainability
Once the architecture is ready, designers will design the application using design patterns to accomplish the system requirements. There are various design patterns and tools to design them.
Now, i would like to talk about only one kind of architecture :- an "N-tier architecture" one. Because i don't know about others. Eventually i will add others also. Ok, Lets come back to our topic. N-tier architecture.
OK lets start with a 3-Tier. That is the most common and most used architecture. In three tier architecture, application is separated physically into various tiers such as Presentation tier, Business Tier, and Data Access Tier. Each tier is a separate assembly.
Now look into the following diagram. It has 5 parts. Three different layers , a Database and a part which is common for every layer(We Can call them common objects)
1) Presentation Tier:
Presentation Tier contains graphical display components and files such as ASPX, ASCX, Master pages, Style Sheets, and so on. Usually “Presentation Tier” is a web site or web application. All ASPX or ASCX pages contain HTML design where we add asp.net controls like buttons, textboxes, data controls, validation controls and so on. And all these aspx/ascx pages contain code behind files where we write the page specific code like filling drop downs, binding data controls, validating input data etc.
2) Business Tier:
Business tier is a class library project with set of classes that are converted into DLL and added as reference in the actual application. It presents data to the higher layers like UI and talks to the Data Access Layer to fetch data.
3) Data Access Tier:
Data Access Tier is a C# class library consisting of set of classes used to encapsulate data access methods like CRUD (CREATE, READ, UPDATE, and DELETE) operations as well as a set of methods to communicate with data store.
4) Common Objects
These are common to all layers. It does the works like passing data from one layer to another,control logging, handle exceptions, security etc.
Please go through each topics to know more about each and how to code it.
renjith