# [Discussion] PHP distributed programming

- Thread: https://externals.io/message/121485
- Original archive: https://news-web.php.net/php.internals/121485
- Started by juan carlos morales on 2023-10-27T11:33:00+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #121485 — juan carlos morales — 2023-10-27T11:33:00+00:00

URL: https://externals.io/message/121485#121485

Imagine a request comes to NgInx, then we process the request in PHP
.... suddenly while execution of PHP is running, we dont have more
resources in the server , so we need to process that PHP code on other
server with more resources.

How can we "move" the complete PHP process to another server with more
resources and then send back the result ?

this is like having a distributed php infrastructure, behaving in a dynamic way.

how can we achieve something like this?

or maybe one piece of code needs to run in another server because of
resources or something like that, like a function for example, only
running one function in a different host and then come back to the
mother one.

My question is .... what do we need to provide PHP some functionality
like the distributed programming languages?

It could be achieve with long running PHP instances and using MPI for
example (I imagine) but ... ideas on this ? Maybe I am crazy
