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
55
votes
5 answers

What is Upstream and Downstream services in a microservices based architecture?

I have heard of the terms "Upstream Services" and "Downstream Services" in general terms but I came across some articles on microservices architecture where they have used these terms. I wasn't able to understand what an upstream and downstream…
Shubham Tiwari
  • 959
  • 1
  • 11
  • 32
50
votes
6 answers

Load balancer and API Gateway confusion

I have always worked on mobile technologies and now I am stepping into backend systems, more specifically systems design. I keep coming across conflicting statements for the roles of api gateway and load balancer. Googling has only returned the same…
Farhan
  • 1,000
  • 1
  • 11
  • 22
41
votes
2 answers

AWS Lambda Task timed out after 6.00 seconds

I am using serverless framework. My Lambda function connects to DynamoDB table for updating item in table. Read & Write capacity units of table are 5 & auto_scaling is disabled. AWS Lambda function has 128MB memory allocated. I have used Jmeter for…
40
votes
3 answers

Websockets in microservices architecture

Let's say we have a notification service which read an event from message queue and notify all web clients in real time. I know how web socket work but i am puzzled when there is an API gateway in between then how web socket connection is maintained…
Vip
  • 1,448
  • 2
  • 17
  • 20
40
votes
8 answers

What is the difference between API Gateway and ESB?

ESB is traditional middleware used in SOA solutions for routing, message transformation, protocol bridging, among other things. A new category of middleware solutions called API Gateway are now offered by several vendors. These solutions are…
Paulo Merson
  • 13,270
  • 8
  • 79
  • 72
32
votes
3 answers

Ingress controller vs api gateway

I would like to know what is/are differences between an api gateway and Ingress controller. People tend to use these terms interchangeably due to similar functionality they offer. When I say, 'Ingress controller'; don't confuse it with Ingress…
Prateek Jain
  • 2,738
  • 4
  • 28
  • 42
21
votes
1 answer

Is there a difference between API gateway pattern and BFF?

My understanding is that API gateway pattern is like a proxy to all microservices. So client calls the API gateway which takes care of further routing. BFF is a specific case of API gateway pattern where we have a routing mechanism for each type of…
codingsplash
  • 4,785
  • 12
  • 51
  • 90
19
votes
1 answer

Netflix-Zuul vs Mashape-Kong

Both Zuul and kong serve as a good API gateway layer in a microservices architecture. What are some important differences between these two?
ChrisOdney
  • 6,066
  • 10
  • 38
  • 48
18
votes
5 answers

API Gateway Proxy for S3 with subdirectories

I created an API Gateway method GET with integration type "AWS Service" for "S3". I defined a Path override: {object} that is mapped from method.request.path.item As long as the path contains only the bucket itself (./bucket/mybucketname), it…
Johnny90
  • 465
  • 1
  • 4
  • 14
18
votes
2 answers

API Gateway responding with a status of 0, Integration latency 10000ms

Here's the error I got back from my API Gateway autogenerated javascript SDK. { "data": "", "status": 0, "statusText": "", "headers": { }, "config": { "method": "POST", "headers": { …
CamHart
  • 3,825
  • 7
  • 33
  • 69
18
votes
3 answers

Is there a comprehensive comparison between Tyk vs Kong?

I have been developing microservices (Spring Cloud) for a while (~2 years) and heavily used Netflix Zuul. While it offers a lot of functionalities and great features, my developer mind wandered towards knowing about the alternatives and came to know…
zeagord
  • 2,257
  • 3
  • 17
  • 24
16
votes
1 answer

Aggregation of data on API Gateway

I am working on microservice architecture and I want to aggregate data from two microservices. For example, Frontend calls the API Gateway and API Gateway calls two microservices Customer and Order microservices. Customer microservice returns…
16
votes
8 answers

AWS API Gateway Websockets -- where is the connectionID?

I am setting up an AWS API Gateway Websockets with a custom authorizer on the $connect route, as described here: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-route-keys-connect-disconnect.html My question is…
15
votes
3 answers

404 trying to route the Upstream path to downstream path in Ocelot

I am facing this warning/error while forwarding the incoming http request to the downstream path. Ocelot.DownstreamRouteFinder.Middleware.DownstreamRouteFinderMiddleware: Warning: requestId: 80000025-0004-fd00-b63f-84710c7967bb, previousRequestId:…
Manan Kapoor
  • 327
  • 1
  • 2
  • 11
15
votes
2 answers

ASP.NET Core Api-Gateway middleware

I am new to API gateways and have a question of understanding. I try too put a series of (micro)services behind an endpoint. For this purpose, I have set up an ASP.NET Core Application and added the package ThreeMammals Ocelot. With the help of…
mMilk
  • 245
  • 1
  • 2
  • 10
1
2 3
83 84