Questions tagged [api-gateway]

A service which acts as a gateway for many other services. Providing discovery, registry, security, circuit breaker, fault tolerance among other things.

Useful links:

1246 questions
15
votes
1 answer

Should API gateway be responsible for authorisation?

Currently I have a monolith application with Java/Spring Boot the following endpoints: /login /logout /some-resource To access some-resource, the flow is following: The user makes a POST request to /login endpoint. If the credentials are correct,…
15
votes
3 answers

How to Specify custom filter in application.yml Spring Cloud Gateway

I have a custom gateway filter MYGatewayFilter.java file now i want to use this gateway filter with my route written in application.yml spring: cloud: gateway: routes: - id: login2_route uri: http://127.0.0.1:8083/login …
14
votes
2 answers

How good is Krakend compared to Kong?

I am stuck in choosing One API gateway from the three API gateways mentioned below: KrakenD (https://www.krakend.io/) Kong (https://konghq.com/kong/) Spring Cloud Gateway (https://cloud.spring.io/spring-cloud-gateway/reference/html/) My…
14
votes
1 answer

Zuul Deployment in Kubernetes

This is my first time trying to deploy a microservices architecture into Kubernetes. At the beginning, I was considering to use Ambassador as my API Gateway. I also have an authentication service which validates users and generates a JWT token,…
Carlos Gomez
  • 275
  • 5
  • 13
13
votes
2 answers

API Gateway Caching vs CloudFront

I'm a bit confused by how API Gateway and CloudFront work together. Ultimately, I want to be able to have a custom header and value be considered part of my cache key. I know this can be done by whitelisting (if I'm using CloudFront). So when I make…
12
votes
4 answers

How to enable Cloudwatch logging for AWS API GW via Cloudformation template

I am trying to enable cloudwatch logs for AWS API Gateway via cloudformation template but it does not enables. I have tried setting up logginglevel to INFO in both Stage description and also Method settings. Any idea on what am I missing? When I…
12
votes
3 answers

How can I aggregate microservices swaggers into a single swagger

I am trying to generate a single swagger in my microservices project, aggregating all services swaggers into a single one, in the Api Gateway. In order to achieve this, I am following the next tutorial…
Roman
  • 1,691
  • 4
  • 18
  • 35
11
votes
2 answers

Authorize AWS API Gateway with either API Key or Authorizer

In AWS API Gateway, - We can set up a resource to reqiure API Key for access. - We can also set up another resource to require Authorization (e.g. JWT token, handled via a lambda function or AWS Cognito). The question: can we configure a resource…
Amir
  • 2,259
  • 1
  • 19
  • 29
11
votes
2 answers

How to choose an API gateway in Kubernetes?

We've used Zuul as API gateway for a while in Microservices scene, recently we decided to move to Kubernetes and choose a more cloud native way. After some investigation and going through the Istio docs, we have some questions about API gateway…
xring
  • 727
  • 2
  • 8
  • 29
11
votes
1 answer

Do I really need web-server alongwith API - gateway in microservice architecture

In the current python application I'd like to redesign, I am using gunicorn along-with nginx. Now as we are moving to the cloud, it makes me think: do I really need nginx or rather any other web-server? In our cloud architecture we would be using an…
11
votes
4 answers

How to merge/consolidate responses from multiple RESTful microservices?

Let's say there are two (or more) RESTful microservices serving JSON. Service (A) stores user information (name, login, password, etc) and service (B) stores messages to/from that user (e.g. sender_id, subject, body, rcpt_ids). Service (A) on…
Swartz
  • 1,051
  • 2
  • 11
  • 23
11
votes
1 answer

How to properly use express-gateway for authentication of a web app?

I am fairly new to the concept of microservices and api gateways in general. I am trying to understand the role that an api gateway plays in a modern web application using many microservices. I have been reading the documentation and tutorials of…
11
votes
4 answers

What are the option to API gateway with docker?

I've created several RESTful microservices and dockerized them. Now I want to have a web-based UI for them and the ability to create users and grant permissions to them to use some of the APIs. I know that I need some kind of API gateway. My first…
user1685095
  • 5,787
  • 9
  • 51
  • 100
10
votes
2 answers

Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter

I have delivered aws serverless (LAmbda, API GW & DynamoDB), but during the developers test they have faced the following error with their 'Postman' utility: { "message": "Authorization header requires 'Credential' parameter. …
Haytham
  • 135
  • 1
  • 1
  • 8
10
votes
2 answers

API Gateway Pattern vs Aggregator Pattern (In the context of microservices)

I am trying to wrap my head around the differences between an API gateway and the aggregator pattern for microservices. At the moment From my understanding the aggregator pattern functions by collecting pieces of data from various microservices and…
Mahir Hiro
  • 135
  • 1
  • 7
1
2
3
83 84