REST | AJAX |
---|---|
REST- Representational State Transfer | AJAX - Asynchronous javascript and XML |
REST has a URI for accessing resources by means of a request-response pattern. | AJAX uses XMLHttpRequest object to send requests to the server and the response is interpreted by the Javascript code dynamically. |
REST is an architectural pattern for developing client-server communication systems. | AJAX is used for dynamic updation of UI without the need to reload the page. |
REST requires the interaction between client and server. | AJAX supports asynchronous requests thereby eliminating the necessity of constant client-server interaction. |