Mastering API Architecture: API Fundamentals

F5 Ecosystem | December 05, 2022


Application Programming Interfaces, or APIs, are all the rage.

Cheer

While APIs are not new, recent phenomena such as accelerated digital transformation during COVID-19, enhanced software integrations, and efforts to replatform legacy apps for the cloud, has resulted in continuous API sprawl—impacting management, security, and even architectural choices organizations make in order to succeed in the modern digital economy.

APIs, in essence, can represent the rise of the machines. Except, fortunately, humans still have control over their construction, management, and security (at least for now).

Robot

Fundamentally, in “API speak” (so to speak), the consumer generally sends queries or requests to the producer, through unified interfaces consisting of various standards, schemas, and specifications.

For example, the National Weather Service (the producer) contains daily weather data. The weather app on your phone (the consumer) calls, or more specifically, queries, this system via the WeatherKit REST API, and then renders the data through the weather app user interface. While this is a simple example of a popular app used by millions of users, it is noteworthy that machine-to-machine communication represents the lion’s share of traffic for modern digital experiences, and it’s powered by APIs.

Lion

There are a number of technology benefits that translate to business value afforded by APIs:

Technology BenefitBusiness Value
Abstract the underlying implementation of a web app.Organizations can quickly deploy mobile apps and microservices-based architectures.
Specify types so developers can implement API consumers through tooling.Leaders can optimize development processes to facilitate improved time to market.
Define semantics/behavior to model consistent and predictable information exchange.Partners can develop and monetize third-party integrations.

When it comes to the implementation of APIs, there are a number of considerations. Specifically, with respect to modeling, versioning, and contract testing, which help to decouple dependencies and ensure interoperability during design, construction, and maintenance.

ConsiderationDescriptionBenefit
ModelingThe semantics or behavior to represent and structure the exchange of information.Streamlined management of distributed architectures.
VersioningGovernance strategies for release and maintenance throughout the API lifecycle.Maximal usability and backward compatibility.
Contract TestingDefined interaction and expected responses between the consumer and producer.Deterministic interactions with third-party business integrations.

There is no right or wrong way to build, manage, and secure an API. In fact, when APIs started to proliferate, it became necessary to standardize on the shape and structure of APIs in order to consume them at scale. Enter the OpenAPI Initiative and resulting OpenAPI Specification (OAS). Swagger was the original reference implementation of the OpenAPI Specification, and most tooling has now converged on using OpenAPI, which still maintains its swagger (HA!)

In fact, an API can be constructed using a variety of standards, schemas, and specifications. For example, a RESTful presentation, a gRPC service, and connections into a GraphQL schema.

ImplementationOverviewBenefitsWhen to Use


REpresentation State Transfer (REST) provides a lightweight architectural model to describe unified interfaces, most commonly applied using HTTP as the underlying transport protocol.

REST is by far the most widely deployed implementation of API-based architectures.

Postman 2022 State of the API Report

  • REST has some very basic rules, with low barrier to entry and a strong domain model, making it relatively straight forward to implement.
  • As a layered system, the complexity of systems behind the REST interface is abstracted. For example, the consumer is not aware that they are interacting with a database system behind a web service.
  • REST has flexible support for content types (including JSON and YAML).
  • When the OpenAPI specification is sufficient for sharing the shape and structure of APIs with consumers.
  • When caching needs to be determined dynamically based on HTTP headers, since requests from producer to consumer are stateless by default.
  • When extending a resource model for a single API provided by the producer or offering multiple APIs on the same base URL using API Gateways.


GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling those queries with existing data (developed by Facebook and now part of the Linux Foundation).
  • Provides a query language to query across multiple sources. 
  • Allows clients to ask for exactly the fields required, including fields that span across multiple APIs, reducing first-time-to-load.
  • Schema language specifies the types in individual APIs and how APIs combine, providing the ability to provide a single version across all APIs—simplifying version management.
  • As a complementary technology placed over existing legacy systems to abstract complexity. 
  • When an API consumer requires uniform access, filtering, and querying over a wide range of interconnected services.
  • With mobile devices, which are constrained by smaller screens and network availability.


gRPC is a modern, open-source, high performance Remote Procedure Call (RPC) framework under stewardship of the Linux Foundation.
  • Highly performant and reliable through use of HTTP/2, lightweight protocol buffers, serialized payloads, and stateful implementations.
  • Pluggable support for load balancing, tracing, health checking, and authentication.
  • High interface function and message interoperability with rich tooling support for all languages. 
  • For the last mile of distributed computing to connect devices, mobile apps, and browsers to backend microservices and for cross-platform apps with mobile to desktop/IoT interaction.
  • For inter-container traffic ("East-West").
  • With external interfaces ("North-South") that require streaming, and for streaming apps such as chat, financial, news. 

With that primer on API fundamentals, we’ll explore how to build, manage, and secure API architecture in subsequent posts before putting it all together by replatforming a legacy app for the cloud.

App Protect

Want to get ahead? Download the eBook today:

Mastering API Architecture | O'Reilly eBook


Share
Tags: 2022

About the Author

Byron McNaught
Byron McNaughtSr. Solutions Marketing Manager

More blogs by Byron McNaught

Related Blog Posts

The everywhere attack surface: EDR in the network is no longer optional
F5 Ecosystem | 11/12/2025

The everywhere attack surface: EDR in the network is no longer optional

All endpoints can become an attacker’s entry point. That’s why your network needs true endpoint detection and response (EDR), delivered by F5 and CrowdStrike.

F5 NGINX Gateway Fabric is a certified solution for Red Hat OpenShift
F5 Ecosystem | 11/11/2025

F5 NGINX Gateway Fabric is a certified solution for Red Hat OpenShift

F5 collaborates with Red Hat to deliver a solution that combines the high-performance app delivery of F5 NGINX with Red Hat OpenShift’s enterprise Kubernetes capabilities.

F5 accelerates and secures AI inference at scale with NVIDIA Cloud Partner reference architecture
F5 Ecosystem | 10/28/2025

F5 accelerates and secures AI inference at scale with NVIDIA Cloud Partner reference architecture

F5’s inclusion within the NVIDIA Cloud Partner (NCP) reference architecture enables secure, high-performance AI infrastructure that scales efficiently to support advanced AI workloads.

F5 Silverline Mitigates Record-Breaking DDoS Attacks
F5 Ecosystem | 08/26/2021

F5 Silverline Mitigates Record-Breaking DDoS Attacks

Malicious attacks are increasing in scale and complexity, threatening to overwhelm and breach the internal resources of businesses globally. Often, these attacks combine high-volume traffic with stealthy, low-and-slow, application-targeted attack techniques, powered by either automated botnets or human-driven tools.

Volterra and the Power of the Distributed Cloud (Video)
F5 Ecosystem | 04/15/2021

Volterra and the Power of the Distributed Cloud (Video)

How can organizations fully harness the power of multi-cloud and edge computing? VPs Mark Weiner and James Feger join the DevCentral team for a video discussion on how F5 and Volterra can help.

Phishing Attacks Soar 220% During COVID-19 Peak as Cybercriminal Opportunism Intensifies
F5 Ecosystem | 12/08/2020

Phishing Attacks Soar 220% During COVID-19 Peak as Cybercriminal Opportunism Intensifies

David Warburton, author of the F5 Labs 2020 Phishing and Fraud Report, describes how fraudsters are adapting to the pandemic and maps out the trends ahead in this video, with summary comments.

Deliver and Secure Every App
F5 application delivery and security solutions are built to ensure that every app and API deployed anywhere is fast, available, and secure. Learn how we can partner to deliver exceptional experiences every time.
Connect With Us
Mastering API Architecture: API Fundamentals | F5