8 Tweets 13 reads Jan 03, 2023
Types of APIs in terms of architecture
- REST API
- GraphQL
- SOAP API
- Kafka API
- Async API
Thread πŸ§΅πŸ‘‡
1️⃣ REST API
REST APIs allow you to perform CRUD (create, read, update, and delete) operations between a client and a server.
It provides multiple API endpoints to manipulate data.
2️⃣ GraphQL
It is a query language that lets client request the precise data they require from the server.
Thus, eliminating the issues of under-fetching and over-fetching.
3️⃣ SOAP API
SOAP API is another kind of web service that allows communication between client and server using the Simple Object Access Protocol (SOAP).
The protocol is defined by the W3C. SOAP APIs rely heavily on XML, and they are considered safer than REST APIs.
4️⃣ Kafka API
Apache Kafka is an event streaming platform that combines three capabilities so that you can implement different use cases.
The three capabilities are:
πŸ‘‰ Publishing and subscribing to the streams of events,
πŸ‘‰ Storing streams of events durably and reliably
πŸ‘‰ Processing streams of events as they occur.
5️⃣ Async API
These APIs work on the principle of Event-Driven Architecture (EDA).
In AsyncAPIs, multiple Subscribers can subscribe to a Publisher.
When an event occurs, the Publisher can notify all the Subscribers via the Message broker.
That’s all for now!
Follow @Rapid_API for more exclusive content. πŸ™

Loading suggestions...