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

How to configure $default path in AWS API gateway?

We are trying to leverage the $default path in AWS API gateway as per https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-routes.html configured api gateway like this leveraging the $default as one of the routes / …
user2359997
  • 561
  • 1
  • 16
  • 40
4
votes
0 answers

Ocelot ApiGateway unable to reach other services on Kubernetes

I'm working on a simple project to learn more about microservices. I have a very simple .net core web with a single GET endpoint. I have added a ApiGateway web app with Ocelot, and everything seems to be working fine except when I deploy to a local…
GioGio
  • 448
  • 2
  • 5
  • 22
4
votes
1 answer

How to check Claim value in array or any in Ocelot gateway?

Assume I have 2 endpoints like this Order creating: requires claim order_perm with value in array ["order_create", "order_edit"] Order searching: only requires claim order_perm exists In case 1., I pass above array to RouteClaimsRequirement like…
kvuong
  • 485
  • 3
  • 20
4
votes
3 answers

How to document rest api using aws cdk

I'm creating a REST API using AWS CDK version 1.22 and I would like to document my API using CDK as well, but I do not see any documentation generated for my API after deployment. I've dived into aws docs, cdk example, cdk reference but I could find…
CCarlos
  • 153
  • 1
  • 8
4
votes
0 answers

How to implement role based method level authorization in springboot on an architecture with 4 micro-services, eureka server and API gateway?

I have a springboot application with 4 microservices, eureka server and a centralised API gateway. I have performed authentication using jwt token at api gateway and now i want to implement role based security on methods which are present in…
4
votes
2 answers

When using WSO2 as API gateway for mobile app, how to handle comsumer-key and secret securely

We are building a mobile application and its API server with architecture as in the picture below. We have WSO2 as the API gateway in front of the Spring Boot API Server. We use WSO2 API Manager to restrict who can call the APIs. Only clients that…
asinkxcoswt
  • 2,252
  • 5
  • 29
  • 57
4
votes
0 answers

API Gateway Aggregated POST (Ocelot)

I'm using ocelot as an API Gateway, and I'm trying to send an HTTP POST request from the client, which would be sent to multiple services, and their responses should be aggregated and returned to the client. It has been mentioned on Ocelot's docs…
Muizz Mahdy
  • 798
  • 2
  • 8
  • 24
4
votes
1 answer

AWS - Using @connections websocket call back url to send response from back-end(one-way) - API Gateway websocket protocol

I have been struggling to send a response to connected clients through aws provided callback url(https://******.execute-api.us-east-1.amazonaws.com/test/@connections). Have the below code in my backend to send the response which is one way…
Raju Guduri
  • 1,237
  • 1
  • 13
  • 25
4
votes
4 answers

Should I use an API Gateway or Service Mesh?

Say you are using Microservices with Docker Containers and Kubernetes. If you use an API Gateway (e.g. Azure API Gateway) in front of your microservices to handle composite UI and authentication, do you still need a Service Mesh to handle Service…
user217648
  • 3,338
  • 9
  • 37
  • 61
4
votes
0 answers

Spring Cloud Gateway with Spring Security

I have been using spring cloud gateway along with spring security to protect my actuator endpoints and a custom gateway filter for authorization filtering. Below are the implementations I have made : For Spring security I have used the following…
Vijay
  • 558
  • 6
  • 22
4
votes
3 answers

Why API Gateway is recommended for Microservices?

For microservices, the common design pattern used is API-Gateway. I am a bit confused about its implementation and implications. My questions/concerns are as follows: Why other patterns for microservices are not generally discussed? If they are,…
4
votes
3 answers

Play Microservices - api gateway and service discovery

We're planning to develop some microservices based on the play framework. They will provide rest apis and lots of them will be using akka cluster/cluster-sharding under the hood. We would like to have an api gateway that exposes the apis of our…
Aki
  • 1,644
  • 12
  • 24
4
votes
0 answers

IAM policy for limiting AWS API Gateway over stages

I have an API gateway with different stages (prod and dev), one for production and latter for development. In-order to restrict access and deployments to prod stage, I have set following IAM policy for a dev user, "Statement": [ { …
4
votes
1 answer

Swagger UI accessed through docker does not work

I have two microservices (Transactions and Payments) that are gonna be accessed through an ApiGateway, and each microservice is inside a docker container. Also, I have implemented my own SwaggerResourcesProvider in order to access both Swagger from…
Roman
  • 1,691
  • 4
  • 18
  • 35
4
votes
0 answers

Ribbon timeout on Zuul API Gateway for route

I have microservices with Zuul API Gateway. For discovery service I use Zookeeper. In Zuul, I've set many routes for a single service, for example: zuul: sensitiveHeaders: Cookie,Set-Cookie routes: customer: path: /customers/** …