Glossary

What is API virtualization?

API virtualization has two meanings. In software testing, it means simulating an API so that teams can develop and test without the real service. In integration, it means publishing a stable virtual API in front of an existing system, so that consumers do not depend on that system's own interface.

In more detail

Two meanings, one idea.

Both uses put a stand-in between a consumer and a real service. In testing, the stand-in imitates the service. It returns recorded or scripted responses, so a team can work before the service exists, or test errors and delays that are hard to produce on demand. In integration, the stand-in fronts the real service. Requests reach the live system, and the consumer sees a contract that is designed for it and stays the same when the system behind it changes. Which meaning is intended usually depends on whether the speaker works in testing or in integration.

Example

An example of each meaning.

  1. 01

    For testing

    A mobile team needs a payments API that is not finished. A virtual version returns realistic responses, including declined and timed-out payments, so the team can build and test.

  2. 02

    For integration

    A warehouse system has only an older proprietary interface. A virtual API in front of it offers a modern availability operation and translates each request to the system.

  3. 03

    The difference

    The first returns simulated data and is switched off when the real service is ready. The second returns live data and stays in place.

Related terms

How it differs from related terms.

API mocking

A mock returns fixed responses for given requests. Virtualization for testing goes further and imitates behaviour such as state, delays, and errors. The two terms are often used interchangeably.

Data virtualization

Data virtualization presents a query layer over several data stores, mainly for analytics. API virtualization presents operations for applications.

API gateway

A gateway routes and secures calls to existing APIs. A virtual API in the integration sense defines a new contract for a system that lacks a suitable one.

Questions

Questions about API virtualization

Which meaning is more common?
In testing tools and literature, the simulation meaning. In integration and data access, the virtual-interface meaning. It is worth confirming which one a document intends.
Does a virtual API in front of a system store its data?
Not necessarily. Requests can be translated to the system as they arrive. Caching or a stored copy may be added where the system cannot carry the load.
Is a virtual API slower than calling the system directly?
It adds a translation step, and it cannot be faster or more available than the system behind it unless responses are cached.

Map where these terms apply in your own integration landscape.