Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Amazon API Gateway HTTP API

Amazon API Gateway HTTP API

Review of Amazon API Gateway HTTP API variant announced for aws:reInvent 2019.

Simone Lusenti

January 09, 2020
Tweet

Other Decks in Programming

Transcript

  1. Amazon API Gateway Amazon API Gateway helps developers easily create,

    publish, and maintain secure APIs at any scale.
  2. Amazon API Gateway Amazon API Gateway helps developers easily create,

    publish, and maintain secure APIs at any scale. Flavours: • REST API • HTTP API new! & others
  3. Amazon API Gateway REST API Typical use cases: • As

    an HTTP(S) frontend for Lambda Functions • A [reverse] proxy for other HTTP(S) endpoints ◦ Rate limiting (e.g. legacy endpoints) ◦ Adding authentication and CW Metrics • To invoke AWS Services directly without a compute component
  4. Amazon API Gateway REST API • Complex scenarios with request

    and response body manipulation (e.g. helpful to migrate legacy backends) • Easy and flexible authentication and authorization
  5. Amazon API Gateway HTTP API Announced at re:Invent 2019 “API

    Gateway as it should have been since the beginning” ~anonymous Has only the most useful* functionality of API Gateway: • Can act as an HTTP(S) proxy for Lambda Functions • Can act as a [reverse] proxy for other HTTP(S) endpoints • Easy authentication and authorization via JWT
  6. Amazon API Gateway HTTP API vs REST API The new

    HTTP APIs: • Cheaper: $ 1.11 vs $ 3.50 per million requests • No backend caching (not serverless!!!!!!) • Authentication via JWT • Easier CORS • Easier deployments (and shorter URLs) • Faster due to less service overhead, in some cases + 1 million free invocations