# Web Dev Python Resources - Shared or Dedicated Thread?

**URL:** <https://forum.inductiveautomation.com/t/web-dev-python-resources-shared-or-dedicated-thread/74508>\
**Category:** Ignition\
**Tags:** ignition81, scripting, python\
**Created:** [June 2, 2023, 7:15pm UTC](https://forum.inductiveautomation.com/t/web-dev-python-resources-shared-or-dedicated-thread/74508 "2023-06-02T19:15:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustin.cooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dustin.cooper/32/29963_2.png) [@dustin.cooper](https://forum.inductiveautomation.com/u/dustin.cooper)\
**Post date:** [June 2, 2023, 7:15pm UTC](https://forum.inductiveautomation.com/t/web-dev-python-resources-shared-or-dedicated-thread/74508/1 "2023-06-02T19:15:40Z")

</div>

Hi all,

I imagine the subject line expresses my query pretty succinctly, but just in case, I've had no luck figuring out from the user manual or perusing this forum if python resources run in a dedicated or shared thread on the gateway when invoked.

I've got some resources that push a pretty sizable payload on a `doPost` and I want to make sure that the processing time to parse this payload isn't blocking other important gateway activity.

As a bonus question - is there any practical limit on the payload size that can be transmitted on the `request['data']` object?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 2, 2023, 7:35pm UTC](https://forum.inductiveautomation.com/t/web-dev-python-resources-shared-or-dedicated-thread/74508/2 "2023-06-02T19:35:38Z")

</div>

WebDev requests run independently on a Jetty thread. (That is, potentially in parallel, so watch out for concurrent resource access.)

Jetty has its own rules for its thread pool--not sure about those.

There's no specific limit to the payload size, besides the impact on memory. Might want to investigate working directly with the response output stream to avoid that problem.

---

<div class="post-metadata">

**Author:** ![dustin.cooper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dustin.cooper/32/29963_2.png) [@dustin.cooper](https://forum.inductiveautomation.com/u/dustin.cooper)\
**Post date:** [June 2, 2023, 7:50pm UTC](https://forum.inductiveautomation.com/t/web-dev-python-resources-shared-or-dedicated-thread/74508/3 "2023-06-02T19:50:31Z")

</div>

Thanks @pturmel for the quick and concise answer!
