CLIENT HAY SERVER ??
One of the key points of Ajax-style applications is to minimize communication between client and server.The problem to consider is to send-receive what information and which task to handle?This involves the development model centered on the server or client.
In the development model centered on the client side, the server initially sends the client information to declare "how to display" with the "behavior" of the user interface. Declare this interface to execute at the client to handle user interaction behavior, send data to the server and receive data (not HTML code) in response, and use this data to generate instance and content . The server takes other resources to the user interface through services.
This model enables efficient implementation of situations from computation to dynamic data at the client. This model also allows instant handling of user behavior and is capable of performing visual effects such as drag-and-drop. The price of this solution includes the effort to write client code no less and the transfer of interface logic from server to client leads to the need to build and learn using new tools, new design models .
In the server-centric development model, the server sends HTML code to the client instead of pure data. The client process is much simpler, primarily responsible for submitting the request and then receiving the returned HTML code and placing it in the correct place on the page. Most interaction processing and interface are on the server.
While some people like the new "path", others prefer the familiar server-side development model.There are features that you can still follow the traditional development model, but features like user interface interaction require an Atlas-style development platform - allowing a rich client model to be balanced with The server-side model is available.
Phuong Uyen
Refer: