Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128789 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id C67FF1A00BC for ; Mon, 6 Oct 2025 16:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1759768781; bh=j6LgKUPGMOn7UN6YLifjr9xaT5SwXdtubOFGY9eG3u8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PLuL1oMc+QcosBNsz3c9kqXGYSkJoH1L99khgUyk/Cs+DIZU6W6gnCCuJL/Uwu29Q /3bA2fIbFhFsfxaCd0jbbkf4LbQHI8EJlxIn7KKeJWv2YkOjuiX+voO5ru0o/mUjpK bTeAXG/tQthKsUJZsbPNSG7iU3ku8Hzi4D4I0QTvM5pItQSwDd0pBkkEe/KFqP4amX A1xfmRwBujRnma1iRX98kNURnZAQzTDdWkVBcVdnB6S+Uo2evSrYA8p42Jlkr1EAQh YD5XIcq31MthYVZAN3CO0t6ARxJ1xcj0bD/sbDn6RiWM5jc5CPVnkiuzqfDLilXcFO lnLB+IPPLYRIA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5E8EF1801DF for ; Mon, 6 Oct 2025 16:39:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 6 Oct 2025 16:39:37 +0000 (UTC) Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-92cbfab6c0dso3228749241.3 for ; Mon, 06 Oct 2025 09:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759768853; x=1760373653; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=en3vsnU7LTa1MbXWQYnab+ea6A7fqKiTrKPBziAE4qo=; b=Iz8VVnQu3Y+Comx6b8wje6bVng5ifgFX3Z0V0rkEmfAshfz3csTDF/3sXI7VCiOmRW KWOJ5peCAgT7ItIqgm/KMjUkh6qZ4HRRCe8a/kAsv35yRfkqcserEYeZC+sbkNwuMLAM Gy05xjLBUaZX182jPGhCSCgMRUPEKjAaltUeJj44Qr9e6SUUsxcmnwA47yx2dvhkMJhH 3+Ujbivt269FX0G6mBkbBCWsObloxdxv4ZHZiJ2fRzSdBAAE2ewn+ZWyi8MlcvjOexzK MiIlFTN8rCR7HSmIhTCmm4unv5TLrH2vGmY866uKnqazf9g0knzAE+r/ra+cKG51UoCF C9Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759768853; x=1760373653; h=content-transfer-encoding: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=en3vsnU7LTa1MbXWQYnab+ea6A7fqKiTrKPBziAE4qo=; b=ahStYnVeBN9Jf65DI7VQTDL5IMkU57p0RGTO25iS2CzqgTgK7x4lW3PS7VUncTVL6p jPll7rK9cLG/Aq4tt7WQ3bXff/7/PMMCaIhNodPu1C7y9AtNPLqZM4kvvM2zTcwSZQl4 YGRN7w2DlGlkgTJGbU12T3lLGlkV29QWAKfEqalLn58xjmb54wIZrkGUUir1gdxh3+kV ZYFw3H8wudtX9W3T9yJvGh0SG+ewZN8p7mLl7yCtQGk3cq5JGUPyEZHCzJNQEPCJDec9 wdfpEUAXL4/WGTyKNuAb/sANLsItte4KwIL3Sp19FyTbZP2jKXKNqvhy+IU/rkJhzvxX 5XEA== X-Gm-Message-State: AOJu0YwSlU7LhKods6DzyhrX28k0SjCZIvXtFgHMSjNhAwuJfFhTNHXY CuEhpIVqlPxQw/5Ajk3uGj0O4Jm1r3AZ2xHln6T3WT6LtG8BnySpJj1dNH6LP9RnOIcEZAvS2to GwOq2RXTSORSsqnSaUM6tQYRyOv3ZMfqSp1mzVNk= X-Gm-Gg: ASbGnct6541Wkl+EvNrAGFIB6xyhnetReS3DWb6RnBGWRZr5upJMl8ZNY8sVoODwz5v EWdgxZk3ATWJv5XlPr9fceJAvXwrYRhbJJx64BMpPQdQTnHzcJMZ70uUP70yAF6j+a6NQ5hvJMW UVn+TZ26vWKnhKUQCrS+YcY4x4VJ9HQ0iu9FaLAubHytWSEmdMSgfBGh1NIF2L/a39S6QXSFLo6 AmF+zkCN3EvOAV8DhuAl0ppBvAFlsZVnisamwTENw== X-Google-Smtp-Source: AGHT+IGkm3FZy1uYKTWb9S7rLeuOEygpZDfIGAZpHQ/eLs4KNu5OodC+96a+mdShovDLbx5N+12UekDPk6SB9+698J8= X-Received: by 2002:a05:6102:952:b0:529:bfd2:382a with SMTP id ada2fe7eead31-5d41d1344bamr5362369137.32.1759768853294; Mon, 06 Oct 2025 09:40:53 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <14f591d4-aa1e-49dc-bc20-03cb493dc20c@app.fastmail.com> In-Reply-To: <14f591d4-aa1e-49dc-bc20-03cb493dc20c@app.fastmail.com> Date: Mon, 6 Oct 2025 19:40:41 +0300 X-Gm-Features: AS18NWBg5XV6irxTyzKzu9cEEv6Yh374KbM6k06xq-rDbJWYysUjNxhdkIuO7BY Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Hi. > This is simply not true. The example you're replying to is quite common. It=E2=80=99s probably my poor English. So I=E2=80=99ll try to rephrase the = idea: The majority of database queries are executed sequentially, step by step. Not all queries. Not always. But most of them. This is true even in languages that already have async. > That is *A benefit*. It is not the *only benefit*. Being able to compre= ss the time of each request in a shared-nothing model is absolutely valuabl= e. (It=E2=80=99s important not to overestimate this model, otherwise lately yo= u sometimes hear complaints that the ultra-trendy immutable philosophy leads to terrible performance :)) A stateful worker does not automatically mean active sharing of state between requests. It gives the developer the choice of what can and cannot be shared. You have a choice. If you want all services to follow the immutable model =E2=80=94 you can do that. But now you don=E2=80= =99t have to pay for compilation or initialization. You have complete creative freedom. > Remember, in the wild, PHP-FPM and mod_php are by orders of magnitude the= most common ways PHP is executed. React, Swoole, etc. are rounding errors= in most of the market. And the alternate runtime with the most momentum i= s FrankenPHP, which reuses processes but is still "one request in a process= at a time." Almost no one wants to spend time building code with a technology that isn=E2=80=99t supported. So when people want to do things like that, they simply choose another language. I=E2=80=99m not saying that async isn=E2=80=99t supported in CGI mode... bu= t.. it=E2=80=99s just that a gain of a few milliseconds is unlikely to be notic= eable. > I am going to assume this is a translation issue, because "morally outdat= ed" is the wrong term here. Thank you! That=E2=80=99s true. But a more accurate translation would be: i= t=E2=80=99s a technology that has become outdated not because of time, but because the circumstances and requirements have changed. Back in the years when CGI was evolving, things were different. There were no servers with a dozen cores.