Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121502 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42757 invoked from network); 28 Oct 2023 23:35:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Oct 2023 23:35:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 322E91804B0 for ; Sat, 28 Oct 2023 16:35:56 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 28 Oct 2023 16:35:55 -0700 (PDT) Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-457c2b6713fso2879107137.1 for ; Sat, 28 Oct 2023 16:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698536154; x=1699140954; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=svG24DFEstw3GGQH7jzuocuoX8KOeOYnNZ5gquvqb00=; b=LGIImcNM6TfUkK+T4L2C0CAQdBJqHpbW0bT6oz52G5tRU6s1rJSAAjz8MFPIt9fDsq 2RKzHhATH2IYHxjwX7Y2Mgji6dxy2HGHn/zXMU5hcS0eDt3vxWymFJ+OkYVvLspWfhUO Aj8WT8A8l/MaTDlnAZfX4oWYgHFrMisVqmVUJvuHwdAX73b2CtJJMpQjr8XU27hgU7H6 n28gAdpITRSRmAs+8KQ9NPJgYjgkNQ7mC1jos76hJl5mxdqwtfm8Wmi6NZVymbc/Fc1s hPfZ5/5xPymxLK/EDgxmZkVWTNFWu6/mABV/SJxkr0NmFCyR3RLWAugjckNHBENWmlCo ptCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698536154; x=1699140954; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=svG24DFEstw3GGQH7jzuocuoX8KOeOYnNZ5gquvqb00=; b=PgOmN3cq9HhUY7dSyS/WlNpjzvmZex6n71/yy70qJTXsO3V9nI8uUYDJYlJso+BCQq R2bxpUeFM6uqws4rT77KiDNGN4a5GZRTUSQ93rwsNeUMm7LNo43USBVcnXX+YPuxd16t yFA5CRBSRYwzxVj53zkyApdinKmofqFP1P5/UxIcYv9g3DvwdATY9I0lcyG4EihMp4j8 PbQGOEZGhiLHKE5a386scgEMb0mDRcXW59HsQXxuRz4uwKEqxd5x5Ifs/OxjI8PEkyVI MlNZZV5QvOhORVbGr1p2dwtvbeTGDuGRG1lH45/n6waE/KzdJxvBUYf2aTThivr8MRAT j6SQ== X-Gm-Message-State: AOJu0YzAWya/NkTcz6WpvJwemLXDUykO3Z/0IG9ktKNtm5f/6s14pl9z vb9OcjylcWjgxgIMATkR2+mKXKUn6o9vshItG30= X-Google-Smtp-Source: AGHT+IE02Tj4ZqgBu3EX9TWjBsF+sfUrd8utvkiA52CUjzqcvb9eRis6mWr8P/5Z7kykOMGz+bTBLgkZyPBqkkPbksU= X-Received: by 2002:a05:6102:4754:b0:45b:7a3f:db2b with SMTP id ej20-20020a056102475400b0045b7a3fdb2bmr750306vsb.17.1698536154648; Sat, 28 Oct 2023 16:35:54 -0700 (PDT) MIME-Version: 1.0 References: <1698415135.52648521@f511.i.mail.ru> In-Reply-To: Date: Sat, 28 Oct 2023 20:35:43 -0300 Message-ID: To: Jordan LeDoux Cc: Kirill Nesmeyanov , internals Content-Type: multipart/alternative; boundary="00000000000022d6bc0608cf4405" Subject: Re: [PHP-DEV] Discussion - PHP with distributed programming features. From: dev.juan.morales@gmail.com (juan carlos morales) --00000000000022d6bc0608cf4405 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El El s=C3=A1b, 28 de oct. de 2023 a la(s) 19:25, Jordan LeDoux < jordan.ledoux@gmail.com> escribi=C3=B3: > > > On Sat, Oct 28, 2023 at 10:54=E2=80=AFAM juan carlos morales < > dev.juan.morales@gmail.com> wrote: > >> >> >> What I mean is more about =E2=80=A6 migrating a running php instance to = another >> node or another php instance, in fact your php code is running, suddenly >> we >> Need to move to another node, how to do it? >> > > This seems less like a discussion about a PHP feature and more like you > asking internals for tech support at work, honestly. As far as I know, > there isn't a way to do what you're asking, because you can accomplish th= e > same thing much easier by designing your application better to make API > calls to services, which is what people have already suggested. The PHP w= ay > to handle the root cause of your problem (too many resources being used o= n > a single machine) is to divide the application into services and use APIs= , > often through sockets, the delegate work to those services. > > There are also other ways of handling this common problem in web > application architecture. You can break up the request into multiple > requests on the client side so that the user sees progress happen in > chunks. You can use tools like RabbitMQ or other queuing services to > perform certain long-running tasks asynchronously. You can use more > powerful hardware or provision more capable nodes. > > In fact, several of these actually fall under the Actor/Object or Dataflo= w > model of implementing Distributed Programming. What PHP does not support = is > the Distributed Shared Memory model of implementing Distributed Programmi= ng > (which is what you are asking about apparently) because doing so would > almost certainly make PHP worse at the things it is well suited for, woul= d > massively complicate the work of maintaining and developing the language > for the contributors to the language, and would be a massive undertaking = to > implement in the first place. > > PHP has distributed programming features. In fact, all of the suggestions > you have received so far ARE ways of doing distributed programming > features. But internals is not your, or my, or anyone else's personal tec= h > support channel, and personally it feels like you haven't explained what = it > is you want to discuss with internals about improving or changing PHP's > support for distributed programming. Are you interested in working on an > RFC to clone a PHP process onto a remote box? I can't imagine that would > get much support here, or be something that is very simple to do. > > Jordan > > Hello Jordan, thanks for the reply. When I read you, I have the feeling that you are a little angry about my question, please dont. It is a very honest question, that do belong to the internals, because if PHP does not have a way to do it, I would like to think a way to do it (despite the fact someone believes is useful or not, it is just me). So again, thanks!, dont get mad :D, and I will come back later on this topic, in a more clear way, maybe I am not expressing myself clearly. Regards --00000000000022d6bc0608cf4405--