Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between an API-Gateway and an Edge Service?

I understand the concept behind an API gateway as described by Richardson:

http://microservices.io/patterns/apigateway.html

But what is the difference to an Edge service. Is this a concrete implementation of the API gateway pattern?

like image 284
Olcay Tümce Avatar asked Sep 01 '17 14:09

Olcay Tümce


People also ask

Is API gateway A Edge service?

API gateways, sometimes called “edge microservices,” are frequently used in applications created with modern, cloud-native microservices architecture.

What is an edge service?

An edge service is a component which is exposed to the public internet. It acts as a gateway to all other services, which we will refer to as platform services. For example, consider an Nginx reverse proxy in front of some web resource servers.

What is Edge API gateway?

An edge-optimized API endpoint is best for geographically distributed clients. API requests are routed to the nearest CloudFront Point of Presence (POP). This is the default endpoint type for API Gateway REST APIs. Edge-optimized APIs capitalize the names of HTTP headers (for example, Cookie ).

What is difference between API gateway and Service Discovery?

The API gateway asks the service-discovery software (e.g ZooKeeper, HashiCorp Consul, Eureka, SkyDNS) where it can locate different backend services according to API requests (by sending the name). Once the service-discovery software provides the necessary information, the gateway forwards the request to that address.


1 Answers

Technically, an API Gateway is the API exposed to the public (REST, etc.), and an Edge Service is a service running on the API resolving the proxying, routing, etc. There could be many edge services on the Gateway. But practically there is usually only one service, logic, on the Gateway thus API Gateway = Edge Service.

like image 83
David Horák Avatar answered Oct 14 '22 08:10

David Horák