Is significant latency introduced by API Gateway?
<p>I'm trying to figure out where the latency in my calls is coming from, please let me know if any of this information could be presented in a format that is more clear!</p>

<p>Some background: I have two systems--System A and System B. I manually (through Postman) hit an endpoint on System A that invokes an endpoint on System B. 
System A is hosted on an EC2 instance. </p>

<ul>
<li>When System B is hosted on a Lambda function behind API Gateway, the
latency for the call is 125 ms.  </li>
<li>When System B is hosted on an
EC2 instance, the latency for the call is 8 ms.  </li>
<li>When System B is
hosted on an EC2 instance behind API Gateway, the latency for the
call is 100 ms.</li>
</ul>

<p>So, my hypothesis is that API Gateway is the reason for increased latency when it's paired with the Lambda function as well. Can anyone confirm if this is the case, and if so, what is API Gateway doing that increases the latency so much? Is there any way around it? Thank you!</p>