title: How to handle backpressure using google cloud functions
body: <p>Using google cloud functions, is there a way to manage execution concurrency the way AWS Lambda is doing? (<a href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html</a>)</p>
  
  <p>My intent is to design a function that consumes a file of tasks and publish those tasks to a work queue (pub/sub). I want to have a function that consumes tasks from the work queue (pub/sub) and execute the task.</p>
  
  <p>The above could result in a large number of almost concurrent execution. My dowstream consumer service is slow and cannot consume many concurrent requests at a time. In all likelyhood, it would return HTTP 429 response to try to slow down the producer.</p>
  
  <p>Is there a way to limit the concurrency for a given Google Cloud functions the way it is possible to do it using AWS?</p>