title: How to limit parallel execution of serverless lambda function
body: <p>I am using AWS and using the serverless framework. My serverless lambda function gets triggered by event. Then I talk with Database and there is a limit in the number of connections I can open with DB.</p>
  <p>So I want to only run 5 lambda functions at a time and queue other events. I know there is:</p>
  <pre><code>    provisionedConcurrency: 3 # optional, Count of provisioned lambda instances
      reservedConcurrency: 5 # optional, reserved concurrency limit for this function. By default, AWS uses account concurrency limit
  </code></pre>
  <p>So in this case, the specified number of long running jobs will be there and they will be serving the events.</p>
  <p>But rather than that what I want is event queuing and the functions will be triggered such that at most 5 functions are running at a time.</p>
  <p>I am wondering whether this notion of event queuing is supported in AWS?</p>