In real time application in the case of server side programming one must follow the architecture to develop a distributed application.
To develop any distributed application, it is always recommended to follow either 3-tier architecture or 2-tier architecture.
3-tier architecture is also known as MVC architecture. M stand for Model (database programming), V stand for view (client side programming, HTML/AWT/APPLET/Swing/JSP) and C stand for controller (server side programming, Servlet).
The General Architecture of MVC or 3-tier:
- Client makes a request.
- Server side program receives the request.
- The server looks for or search for the appropriate resource in the resource pool.
- If the resource is not available server side program displays a user friendly message (page connot be displayed ). If the resource is available, that program will execute gives its result to server, server interns gives response to that client who makes a request.
- When server want to deals with database to retrieve the data, server side program sends a request to the appropriate database.
- Database server receives the server request and executes that request.
- The database server sends the result back to server side program for further processing.
- The server side program is always gives response to ‘n’ number of client concurrently.
No comments:
Post a Comment