Using APIs in integrations

What is an API?

An application program interface (API) is code that allows two software programs to communicate with each other. APIs expose features and services to developers. 

Advantages

Re-usability- The same API can be used by multiple applications. The APIs require the input in the right format and they will give the output as per the API contract. Hence, existing functionalities can be shared.

Data Abstraction-Only the relevant details are shared (request and response).

Data Encapsulation- Collection of features are grouped together to make an API. 

Polymorphism- Depending on the request, the response can be varied.

Maintenance – APIs are standalone entities and hence instead of enhancing or updating the individual applications that use the services, APIs can be updated and the necessary changes can be communicated to the consuming applications.

Challenges

APIs may undergo changes and update might be required. This will need versions. But, this can be achieved and will provide us with greater control

If an API becomes unstable because of an update, multiple applications will get in trouble.

Newer versions of an API might make earlier request/response incorrect. But, this can be worked around by having backward compatibility and taking care of the version of the interacting systems.


As a conclusion, we can say that APIs have a lot of advantages and the challenges that APIs pose can be taken care of making APIs a viable solution approach while designing integrations.

Comments

Popular posts from this blog

21 tips to understand an AS-IS process

Dealing with Integrations of systems