Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between API Gateway provided by Azure API Management and Azure Application Gateway?

I'm new to Azure and I skimmed through Azure official documentation.

  • What I would like to understand is the difference and similarities between the API Gateway provided by Azure API Management and Azure Application Gateway?

  • When do we require Application Gateway in front of API Gateway (provided by Api Management)?

    • When API Gateway hosted normally.
    • When API Gateway hosted inside VNet.
  • When do we require Azure Front Door in front of Application Gateway?

  • Do we need to chain Azure Front Door --> Application Gateway --> API Gateway in what scenario, instead can't we do this Azure Front Door --> API Gateway, if yes in which scenario?

I want to understand solution to above questions based on below two compute solutions:

  • When my API is hosted in Containers.
  • When my API is composed of only Azure Functions.
like image 891
Vigneshwaran Rajan Avatar asked Jun 13 '20 19:06

Vigneshwaran Rajan


People also ask

What is the difference between API Gateway and Application Gateway?

Both do behave like a reverse proxy, APIM provides a policy framework to manipulate requests both inbound and outbound, along with features such as rate limiting and conditional caching. While Application Gateway has more features in terms of rewriting and manipulating traffic on an HTTP protocol stack.

What is the difference between API Management and API Gateway?

While API Gateways and API management can be used interchangeably, strictly speaking an API gateway refers to the individual proxy server, while API management refers to the overall solution of managing APIs in production which includes a set of API gateways acting in a cluster, an administrative UI, and may even ...

Is Azure API Management an API Gateway?

Azure API Management is made up of an API gateway, a management plane, and a developer portal. These components are Azure-hosted and fully managed by default.


1 Answers

Good question, I'll try to answer.

API Gateway is a pattern very common in API scenarios. It act's as a facade where you can transform the incoming/outcoming requests. There are many services which you can use for it:

  • Kong
  • Ocelot
  • Apigee

and on Azure, API Management.

Azure Front Door and Azure Application Gateway (to me), offer more or less the same thing: Load balancer to your services + Web Application Firewall (WAF). If I have to choose one, I will go with Front Door as I think it's easier to setup.

When do we require Application Gateway in front of API Gateway (provided by Api Management)?

Whenever your API will be exposed to the internet. As I said, the benefit is having WAF in front of your APIs, it will block most common attacks (SQL Injection, XSS, etc).

like image 58
Thiago Custodio Avatar answered Sep 25 '22 02:09

Thiago Custodio