Project Architecture Means what are the layers in our project with flow diagram. Here tier can be referred as a 'layer'. suppose our project contains 3 layer like client layer, business layer and data layer then we draw the all layers flow.
In IT industry N-Tier architecture is an industry-proven software architecture model. It is suitable to support enterprise level client-server applications by
providing solutions on scalability, security, fault tolerance, re-usability and maintainability. It helps developers to create flexible and reusable applications.
In IT industry N-Tier architecture is an industry-proven software architecture model. It is suitable to support enterprise level client-server applications by
providing solutions on scalability, security, fault tolerance, re-usability and maintainability. It helps developers to create flexible and reusable applications.
The Three-tier Architecture is divided into 3 layers:
Presentation layer(Client or Browser)
Business layer(Struts or Spring) we used Server(either Tomcat (or) weblogic )
Database layer( Oracle (or) MySQL)
Presentation layer(Client or Browser)
Business layer(Struts or Spring) we used Server(either Tomcat (or) weblogic )
Database layer( Oracle (or) MySQL)
presentation layer:
It is also known as Client layer. Top most layer of an application. The main functionality of this layer is to communicate with Application layer. For example, login page of Facebook where an end user could see text boxes and buttons to enter user id, password and to click on sign-in. This is also called view of the application.
Example: JSP
Business layer:
It is also called business logic layer or logical layer. As per the Facebook login page example, once user clicks on the login button, business layer interacts with Database layer and sends required information to the Presentation layer. It controls an application’s functionality by performing detailed processing. This layer acts as a mediator between the Presentation and the Database layer. Complete business logic will be written in this layer.
Example: STRUTS,SPRING
Data layer:
The data is stored in this layer. Business layer communicates with Database layer to retrieve the data. It contains methods that connects the database and performs required action e.g.: insert, update, delete etc.
Example: oracle, MySQL
Step 1: When ever we submitting the request from client(Browser) to Server component then controller receives the request from Browser. So you must remember every request will reach to controller component.
Step 2: The controller receives the request from Browser then Controller has to identify a particular model. Then it will execute business logic. Here model is might be java class or business logic's available. Here controller acts as mediator between view and the model. Finally, after performing some action on server side then controller identify respective view component. That means JSP page has view part.
Step 3: After executing model part if it is required to interact with database then model part interact with database.
step 4: Then view layer displays of the model to the end user. Then generate the require dynamic web page return to Browser. Finally view part send to the response to the client(Browser)
Check this post also: What is Stack in java with Example
I hope you enjoy this post and share this on social websites to reach your friends and give comments about on this topic. Keep follow me for latest updates.
Nice exlanation... Thank you
ReplyDelete