API diagram

What are the strengths and limitations of three commonly used API architectural styles?

Developers are always interested in finding ways to speed up how they create software and use data within their applications. Rather than implementing and operating databases themselves, developers would prefer to use APIs on top of a database infrastructure instead. In this article we take a look at the most popular API architectural styles — REST, gRPC, and GraphQL — and explore the strengths and limitations each one has for working with databases.

Figure 1. Rest API specification (OpenAPI) generated by Swagger.

Figure 1. Rest API specification (OpenAPI) generated by Swagger.

Figure 2. Key characteristics of GraphQL.

Figure 2. Key characteristics of GraphQL.

Figure 3. gRPC communication interoperability principle.

Figure 3. gRPC communication interoperability principle.

+

Esta página está disponible en español

Ver en español