Make asynchronous requests with JavaScript and AJAX




There are two ways to communicate with the client and the server; synchronous and asynchronous. Let’s take a look at them:


The sequence diagram below is an example of the synchronous communication model:


 




In this model,the client (browser or client application) makes a request to the server then waits until it receives a response from the server before doing anything.



This process consumes unnecessary time.


 



 



 


 


 


 


 

                    

Copyright © 2012 VisualBuilder. All rights reserved