Comparison

API gateway or point-to-point integrations: when to make the move?

At first, linking two applications with a direct call is the simplest option. Then come a third system, a partner, a mobile app, and each link has its own security, its own rules and its own way of failing. An API gateway brings order back, provided it arrives at the right time.

The short answer

Direct calls are enough for a few stable internal exchanges between trusted applications. An API gateway becomes necessary as soon as you expose APIs to partners, mobile apps or several teams: it centralises authentication, access rights, quotas, versions and call tracking, instead of recoding them in every application.

The differences, criterion by criterion

An API gateway sits between those who call the APIs and the systems that serve them. It does not replace integration: it governs its front door.

CriterionAPI gatewayPoint to point
SecurityAuthentication and rights defined once, applied to every API (OAuth2, API keys, JWT)Recoded in each application, at uneven levels
Partner accessDeveloper portal, subscriptions, revocable keys, up-to-date documentationCase-by-case exchanges, credentials shared by e-mail
Protecting systemsQuotas, rate limiting, cachingOne greedy partner can slow down the ERP
ChangesManaged API versions, routing to the old or new system without changing the addressEvery change breaks callers, who must be warned one by one
TrackingAll calls visible in one place: who calls what, how often, with which errorsLogs scattered across each application
Set-upOne more platform to install and runNothing to add at first
Relevant forSeveral consumers, external partners, mobile apps, sensitive dataTwo or three stable internal applications

When to choose one or the other

An API gateway, when…

  • suppliers, customers or carriers need to call your systems;
  • a mobile app or an e-commerce site reads your data;
  • several teams publish APIs, each in its own way;
  • you are replacing a system and want to switch calls over without warning every consumer;
  • you must prove who accessed which data.

Point to point, when…

  • two or three internal applications exchange data, and that will not change;
  • no third party accesses these exchanges;
  • a one-off project or a prototype needs to move fast, with the plan to go through the gateway later.

Signs it is time for a gateway

The ones we see most often:

  • connecting a new partner takes weeks of back-and-forth and development;
  • nobody knows exactly who calls which API, or with which rights;
  • technical keys or passwords circulate by e-mail and are never renewed;
  • a greedy caller has already slowed down a core system;
  • every API change requires coordinating several teams and partners.

The gateway and integration work together

The gateway handles the entrance: who may call, how often, which version. Behind it, the integration platform or the microservices do the work: transforming, orchestrating, writing into the ERP or CRM. Business services stay simple, receiving callers that are already authenticated and authorised, and there is a single door to watch.

How we approach the question

We start with an inventory of existing APIs and their consumers, then define access plans (who, what, with which authentication) before touching any code. Roll-out is done API by API, starting with those used by partners. We work in particular with Gravitee, for API and identity management.

Frequently asked questions

Does an API gateway slow calls down?

It adds a step, usually negligible compared with the processing time of the system being called. It can even speed up responses through caching, and it protects systems by limiting excessive calls.

Read the article →

What is the difference between an API gateway and an integration platform?

The gateway controls access to APIs: authentication, rights, quotas, versions, tracking. The integration platform moves and transforms data between applications. They complement each other: the gateway in front, integration behind.

How can partner onboarding be faster?

With a developer portal: partners find the documentation, subscribe to an API, get their access and test on their own. Their rights are limited to what concerns them, and access can be revoked in one click.

Read the article →

Do existing APIs need to be rewritten?

No. The gateway sits in front of the APIs as they are: they are declared one by one, their access plans are defined, then callers are moved to the new address.

Read the article →

What does the cost of an API gateway depend on?

The number of APIs and consumers, call volumes, high-availability needs, the choice between open source, a commercial offering or a managed service, and identity management. We discuss it based on your actual APIs, in a first conversation.

Are your APIs under control?

Let’s take stock of your APIs and their consumers together: you will see where a gateway would save time and reduce risk.