# multi-threading in Slim

**URL:** <https://discourse.slimframework.com/t/multi-threading-in-slim/5229>\
**Category:** Questions\
**Created:** [March 30, 2022, 10:26pm UTC](https://discourse.slimframework.com/t/multi-threading-in-slim/5229 "2022-03-30T22:26:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.rizzon](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@peter.rizzon](https://discourse.slimframework.com/u/peter.rizzon)\
**Post date:** [March 30, 2022, 10:26pm UTC](https://discourse.slimframework.com/t/multi-threading-in-slim/5229/1 "2022-03-30T22:26:22Z")

</div>

Hi! I need to use the concept of multi-threading in Slim. how should I do? Is there currently this possibility? Thanks.

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [April 1, 2022, 11:41am UTC](https://discourse.slimframework.com/t/multi-threading-in-slim/5229/2 "2022-04-01T11:41:41Z")

</div>

PHP is [shared nothing](https://tideways.com/profiler/blog/php-shared-nothing-architecture-the-benefits-and-downsides) by default. Please add more technical details.

---

<div class="post-metadata">

**Author:** ![peter.rizzon](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@peter.rizzon](https://discourse.slimframework.com/u/peter.rizzon)\
**Post date:** [April 1, 2022, 1:27pm UTC](https://discourse.slimframework.com/t/multi-threading-in-slim/5229/3 "2022-04-01T13:27:22Z")

</div>

Hi! I need to start a process, triggering a post to a REST API that will take time to return while the page remains operable for the user. Much like AJAX behavior.

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [April 1, 2022, 1:47pm UTC](https://discourse.slimframework.com/t/multi-threading-in-slim/5229/4 "2022-04-01T13:47:46Z")

</div>

There are different ways to solve this. It depends on your specific requirements.  
How do you start / invoke / trigger the process? Via HTTP, Cronjob etc?
