Synchronous Versus Asynchronous Calls

As applications evolve, some components' method calls can take a long time to complete. This can occur when a method has to perform a complicated operation or search for a record or set of records from a database that has a large volume of records.

An example is a flight reservation system, where a search could be looking for a flight on day X from location A to location B and returning on a day Y from location B to location A. There are over 6000 flights per day in the United States alone. In addition, the search may have to access legacy systems to retrieve the possible flights that match the given criteria, and this can take some time.

When a synchronous call is made to a method, the client application ...

Get Creating and Consuming Web Services in Visual Basic® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.