title: AWS lambda throws read: connection reset by peer
body: <p>We are using <code>AWS Lambda</code> to process data and generate an useful insight around it.</p>
  
  <p>On using with higher concurrency, the <code>AWS Lambda</code> has started throwing  </p>
  
  <pre><code>read: connection reset by peer
  </code></pre>
  
  <p>On searching, found out that it could be due to higher concurrency execution but the <code>aws lambda</code> have a max. concurrency of 1000 and we have utilized only at max around 500 connections. (Using AWS monitoring graph).</p>
  
  <p>We are executing <code>AWS Lambda</code> with <code>API Gateway</code></p>
  
  <p>Any hints are appreciated.</p>