# Is there a limit of parallel requests/queries from inside an app function?

**URL:** <https://community.dynatrace.com/t/is-there-a-limit-of-parallel-requests-queries-from-inside-an-app-function/37926>\
**Category:** Developer Q&A Forum\
**Tags:** app-functions\
**Created:** [January 9, 2023, 3:16pm UTC](https://community.dynatrace.com/t/is-there-a-limit-of-parallel-requests-queries-from-inside-an-app-function/37926 "2023-01-09T15:16:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [January 9, 2023, 3:16pm UTC](https://community.dynatrace.com/t/is-there-a-limit-of-parallel-requests-queries-from-inside-an-app-function/37926/1 "2023-01-09T15:16:52Z")

</div>

Do you know if calling multiple app functions in parallel will run multithread on the serverless side (will we auto-scale) or will it be a single lambda with 2 CPUs (to allow for a OneAgent to run on it)?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [January 9, 2023, 3:19pm UTC](https://community.dynatrace.com/t/is-there-a-limit-of-parallel-requests-queries-from-inside-an-app-function/37926/2 "2023-01-09T15:19:20Z")

</div>

Ooo found an answer from&nbsp;[@LukasPlogmacher](https://community.dynatrace.com/user/45317)&nbsp; :

The functionproxy enforces a limit of 20 parallel app-backend/adhoc executions per tenant per functionproxy instance (the exact number of replicas will still need to be decided on). If you hit that limit, you’ll get a 429 response. If you get a 429, you can be sure that there was no side-effect, and you may implement retry logic in your app.&nbsp;The app from which the execution comes does not affect the limit.&nbsp;These limits are not meant to be configurable, but if they become an issue for you, please let us know.&nbsp;There is also a recursion depth limit (in case a function calls another function) of 5

More limits can be found at:&nbsp;[App functions | Dynatrace Developer](https://developer.dynatrace.com/develop/functions/#runtime-limitations)

---

<div class="post-metadata">

**Author:** ![stefan\_baumgart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_baumgart/32/33707_2.png) [@stefan\_baumgart](https://community.dynatrace.com/u/stefan_baumgart)\
**Post date:** [January 10, 2023, 7:45am UTC](https://community.dynatrace.com/t/is-there-a-limit-of-parallel-requests-queries-from-inside-an-app-function/37926/3 "2023-01-10T07:45:11Z")

</div>

Furthermore: Every invocation is handled by its own instance (no matter if it runs on Lambda or not), and you usually work on a fraction of a CPU (~1/6). So be certain about CPU-intense tasks
