What Is Serverless Concurrency? Tune Instance Throughput and Scaling Limits
Serverless concurrency is the number of requests or events a function or service is processing at one time. It is different from requests per second. Higher concurrency can let one instance do more work and reduce instance count and cost, but shared resources such as memory, CPU, and database connections can saturate first. The goal is not to maximize a setting; it is to process work reliably within acceptable latency and error limits.
Serverless concurrency is the number of requests or events a function or service is processing at one time. It is different from requests per second. Higher concurrency can let one instance do more work and reduce instance count and cost, but shared resources such as memory, CPU, and database connections can saturate first. The goal is not to maximize a setting; it is to process work reliably within acceptable latency and error limits.
How is concurrency different from requests per second?
Requests per second (RPS) is the arrival rate over time. Concurrency is the number of requests currently in progress. Longer average processing time means more requests can be in progress at the same RPS. A useful approximation is:
Average concurrent requests ≈ requests per second × average request duration (seconds)For example, 120 requests per second with an average duration of 0.25 seconds means about 30 requests are in progress on average. This estimates average load; it is not a safe instance setting or a peak forecast. Variable durations and bursts can make p95/p99 latency and peak concurrency much higher.
Incoming request rate (RPS) ─┐
├─ In-flight requests (concurrency) → per-instance resources
Request duration ────────────┘ → scaling, queueing, limitsAre platform and application concurrency the same?
A platform setting usually caps how many requests can be sent to or processed by one instance at the same time. Application concurrency is what the code and runtime can safely and efficiently handle in parallel. Setting a limit to 50 does not mean the code can handle 50 well if it shares mutable state unsafely or one task consumes most of the CPU.
Some function platforms use a separate execution environment for each concurrent request; container services may let one instance process several requests together. Services such as Azure Functions also expose trigger- and instance-specific concurrency controls. “Serverless concurrency” is therefore not one universal setting. Check what unit the setting applies to: request, message, trigger, instance, function app, or account.
What changes when concurrency goes up or down?
Lowering the per-instance maximum can require more instances for the same load. This can reduce CPU or memory contention and encourage horizontal scaling sooner, but it may increase instance startup, cold starts, and cost.
Higher concurrency can let fewer instances handle the same request volume, potentially reducing cost. It can suit I/O-bound services where one request can progress while another waits on a network or database. But CPU-heavy work, large memory use, or shared state that needs locking can create contention, queues, worse latency, or errors. Fewer instances are not an improvement if total response times deteriorate.
| Lower setting | Higher setting |
|---|---|
| May reduce per-instance contention and prompt scaling | May handle the same volume with fewer instances and lower cost |
| May increase instance count, startup work, and cold-start cost | May increase memory, CPU, connection-pool contention, or waiting |
| Can suit CPU/memory-heavy requests or code with little parallelism | Can suit code efficient at parallel I/O |
Example: tuning an image-conversion API
Hypothetical example: Suppose an image conversion service uses substantial CPU and memory while processing each image. With a high concurrency setting, one instance may accept several images at once, run short of memory, or build a long queue. Lower concurrency can spread work over more instances and reduce pressure per instance, but instance startup, waiting, and cost may rise.
Use representative images and expected peak arrival rates in a load test, starting with a conservative concurrency value. For each setting, record p95/p99 response time, errors and retries, per-instance CPU and memory, scale-up time, and connection/request limits of the database or conversion backend. Low latency and no errors are not enough if a downstream service is near its limit. Confirm that it will not be overloaded as demand rises and that the resulting throughput is worth the cost. This scenario is illustrative, not a reported test result.
How can you find a suitable value?
**Confirm the unit.** Check whether the setting means requests per instance, messages per trigger, or an overall function concurrency limit. Account and regional quotas may be separate.
**Check parallel-safety.** Review shared global state, caches, files, connection pools, and libraries for data races or state leakage. Fix unsafe code or limit concurrency first.
**Check downstream capacity.** Identify database connection limits, external API rate/concurrency limits, and broker throughput. Use limits and backpressure so serverless demand cannot overwhelm dependencies.
**Tune gradually under load.** Reproduce expected request sizes and bursts. Change concurrency in steps and compare p95/p99, errors, instance count, resource use, and cost. Do not assume one value is optimal for every workload.
**Verify scale and overflow behavior.** Check how per-instance limits interact with function/account quotas and maximum instance counts. Record whether excess work starts more environments, queues, retries, or throttles.
**Roll out with a recovery path.** Apply the new value to a small share of traffic, watch metrics and alerts, and restore the prior setting if latency, errors, or resource exhaustion worsen.
Concurrency limits also differ from provider quotas. AWS Lambda reserved concurrency sets a function's maximum and reserves part of the account pool, but does not pre-initialize environments. Provisioned concurrency is a separate feature that initializes a configured number in advance and can add cost. Cloud Run's maximum concurrent requests is a per-instance cap; lowering it may require more instances for the same volume. Azure Functions settings depend on trigger and hosting plan. Do not assume the terms are equivalent across products; verify current scope and behavior in official documentation.
What signals should you monitor?
If active executions or in-flight requests repeatedly reach the configured cap while queues or latency grow, concurrency or scaling capacity may be the bottleneck. Saturated CPU, rising memory, errors, and restarts can signal too much work per instance. If CPU is low and requests mostly wait on I/O, testing a higher value may be reasonable. Do not tune from one metric alone: consider user latency, errors, resource use, downstream load, and cost together.
Lower concurrency can cause more instances to start and requests to wait, sometimes in a platform-managed queue. Higher concurrency may still be constrained by account quotas, requests-per-second limits, maximum instances, trigger partitions, or downstream services. When a limit is reached, identify which layer imposed it before changing the cap. Raising a limit does not solve downstream overload.
Treat concurrency as a balance
Concurrency is not throughput per second, and increasing one number does not automatically improve performance. Align the amount of parallel work an instance can handle safely with scaling behavior, function or account limits, and downstream capacity. Validate latency, errors, resources, and cost under representative load, and document the reason for the setting and how to roll it back.
Sources
[AWS Lambda concurrency and scaling](https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html)
[Monitoring AWS Lambda concurrency](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-concurrency.html)
[Maximum concurrent requests per Cloud Run instance](https://docs.cloud.google.com/run/docs/about-concurrency)
[Cloud Run development tips: tuning concurrency](https://docs.cloud.google.com/run/docs/tips/general)
[Concurrency in Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-concurrency)
Official documentation was reviewed on November 20, 2026. No account setting or workload load test was performed. Quotas and defaults can vary by service, region, account, and runtime; verify the current configuration and documentation before changing production settings.