Sanjay-George / nick-name-generator

(Cloud App demo, not a toy!) A simple nickname generator built with microservice architecture. Docker and K8s deployment.
0 stars 0 forks source link

Build API gateway #10

Closed Sanjay-George closed 2 years ago

Sanjay-George commented 2 years ago

Explore how to build an API gateway in node JS

Why API gateway?

  1. Aggregate multiple calls to avoid roundtrips (series vs parallel calls)
  2. The services might be using protocols that aren't web friendly, eg: thrift RPC. Calling from client won't be possible
  3. Refactoring of microservices (breaking down, or combining) would need changes on every client.

Features of API Gateway?

  1. High performance and scalability

  2. Service Discovery

  3. Service Invocation (either async - queues, or sync - http/grpc)

  4. Handling partial failures

  5. Data aggregation (from multiple services)

  6. Protocol transformation Image

  7. Authentication (cookie / token based )

Articles

Check the resources mentioned here : https://github.com/Sanjay-George/Learning-Materials/blob/master/README.md#api-gateway