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
10
votes
1 answer

Spring Boot 2.4.2 Gateway API with Zuul

I'm trying to build an Gateway API using the new Spring Boot Starter Parent 2.4.2 but, for some reason, looks like the spring-cloud-starter-netflix-zuul isn't supported anymore and doesn't work with the new version! Is there any substitute?
Alfredo Marin
  • 195
  • 1
  • 1
  • 14
10
votes
5 answers

springcloud api gateway properties file declaring variables

I have application.yaml in springboot app as below spring: cloud: gateway: routes: - id: pgService uri: http://localhost:2005/ predicates: - Path=/employee/** - id: inMateService uri:…
10
votes
3 answers

Authorise Request to AWS WebSocket API Gateway using AWS_IAM

I've set up an API Gateway using WebSocket protocol. On the '$connect' route request setting, I selected 'AWS_IAM' as the authorization method. The web app needs to make a connection to this WebSocket API after a user logged in via Cognito. How do I…
10
votes
1 answer

How to fetch API Key using aws CLI

I have a script where I want to fetch the AWS API gateway ID and API key value. So far I have been able to get the API gateway ID using the cli: aws apigateway get-api-keys --query 'items[?name==`my-api-key-name`].id' --output text --region…
Satya
  • 167
  • 3
  • 11
10
votes
2 answers

internal communication Microservices through API Gateway

In a microservice architecture, there is a common pattern called API Gateway. I know that all communication from outside the API Gateway is used as a single entry point. But I also would like that the internal communication from microservice to a…
Chief Peter
  • 343
  • 5
  • 11
9
votes
3 answers

Micro Service with API Gateway Ocelot vs Nginx

I have a .net core based micro service architecture. I chose ocelot as api gateway. My frontend application is vue js based and hosted on nginx container. During a discussion today, I learned that nginx can already be used as a gateway.it was…
Melih Altıntaş
  • 2,495
  • 1
  • 22
  • 35
9
votes
1 answer

Guidance for Blazor Server with API Gateway and Microservices

So far I have had no luck finding guidance on using Blazor Server (not WebAssembly) with an API Gateway and Microservices. Articles discussing these Blazor together with API gateways and microservices invariably refer to Blazor WebAssembly (Wasm).…
9
votes
2 answers

AWS API Gateway Access Private Subnet

I have Public and Pvt Subnets in my VPC. I have some services running on EC2 in Pvt subnet, that needs to be accessed by external/mobile resources. How do I do this- is VPCLink and NLB the way to do it, or any other way, create some access point in…
Sam-T
  • 1,877
  • 6
  • 23
  • 51
9
votes
1 answer

AWS API Gateway 403 Forbidden

I have created one API in AWS API Gateway. In that API I created one proxy resource with custom http endpoint. But when I access the API Gateway endpoint https://2r3g3ttr6y.execute-api.eu-east-1.amazonaws.com/production/abc/abc.html it is not…
user3847894
  • 986
  • 4
  • 16
  • 37
8
votes
1 answer

Can't enable actuator into spring cloud gateway Greenwich

I just installed a Spring Cloud Gateway server (Greenwich.SR2) with Boot Actuator starter dependency, but can't reach any /actuator/gateway or /gateway API I tried to activate and publish the endpoint, without success…
8
votes
2 answers

API Gateway Lambda CORS handler. Getting Origin securely

I want to implement CORS for multiple origins and I understand I need to do so via a lambda function as I cannot do that via the MOCK method exports.handler = async (event) => { const corsUrls = (process.env.CORS_URLS || '').split(',') const…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
8
votes
2 answers

AWS API Gateway : route error

I created my API in EC2 instance of AWS. when I'm deploying my API in to AWS Api gateway. API Gateway provided me with a link. When I used that same link in postman to access my API, I'm getting the following error, despite providing IAM…
user9639877
8
votes
4 answers

How to work with CORS in Zuul as API gateway + AngularJS + Microservices

I have an application which uses Zuul Netflix as API gateway, the architecture is below: The architecture is working fine, using the the browser and postman I can access different REST endpoint from the microservices (Service 1, 2 and 3). But when…
imprezzeb
  • 706
  • 1
  • 7
  • 18
7
votes
1 answer

x-amz-apigw-id in API Gateway response headers?

Hi all I am using the API Gateway to expose the API , when I call my API it returns header called x-amz-apigw-id=some_value. What is this header means? This is not equal to my API Gateway ID, I found some blogs stating that this is base64 encoded…
jebaseelan ravi
  • 185
  • 2
  • 10
7
votes
4 answers

404 error in spring cloud gateway for every alternate request

I am encountering a very peculiar problem in spring cloud gateway. Every alternate request returns a 404. This happens across all services I've configured in the api-gateway without exception. I don't even know where to start to debug this problem.…
horatius
  • 784
  • 1
  • 12
  • 30
1 2
3
83 84