Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128794 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 343B91A00BC for ; Mon, 6 Oct 2025 21:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1759785705; bh=rg+xdy0W5I+kxqec7j6fffzdoW+hKXSgOh4qoiDXtRs=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Zi0UVGGt37CWvB95Ko+ZDPDHK4yTOuAdL0vL+djJAJudu4Kf6ou+f8RQt2eCbGGZS 0jM/9stNU2nQvPYkOmcOIJIwvAHx5nLotiWS4TzSifNIpe6FgZj/kgcgsOwN0yx7ch +a8GahqcQT+Hll6mBkW/oAR741uQf/hrad2ObTWZs9dxKiu82bwxdF2q0b8+gGQ8Oa EuTNNmzF8Ul/zfEXJuqMsKSzKZ50iR1I1bLJDNHmvuEa+bLfsFv1MeH9YF3u0xLc1y 6APS5HUZzO9vA+pVElMy7KbVHAOv5eERxEjH4LXtEHklOTThEqeTuDj34KebVnNn4R CmfWMHWJCtbJQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2983C1801DB for ; Mon, 6 Oct 2025 21:21:44 +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.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (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 21:21:43 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 41C45EC020D for ; Mon, 6 Oct 2025 17:23:00 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 06 Oct 2025 17:23:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1759785780; x=1759872180; bh=3EaZBatH0qCyGnY3QrrmdJW8XvJe2qSC0vOw4h8jk10=; b= oZyJV5lYQxWlCtJj7IyBeUOBaIwV6XiO8tlofVkdnwhYDC1/X8b/ImJDVYXIG2GL MNnzONGHEcprS1k/K5kCewl5+leMZUyiZRBdLydDsShQunzHNj9rfAF94foH3FFa g4yOu3rfWp6FM9YR6B05UGgIw0j+cjPJ/u6DTjfrazYPcH74OYkh1mmgMdmUQGuC XWqWZwKGUGXpp/8MP6286R4dH4a0BDVYIzqiDZCBMjmy9K7k34f2Vz94FS++5ttO 1zBtgLmH+3uXjFSNxMU+HZsW7jD0U2z9ebEpdIgySuMAnI7yutjqXOnF6TkuNoLl UGY28gQp9uV56zsWlTUjYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1759785780; x=1759872180; bh=3 EaZBatH0qCyGnY3QrrmdJW8XvJe2qSC0vOw4h8jk10=; b=gPb963UbP5I+aHGPh JbnBQvspq3SRqbjfeJDVozZC+zmcNvnhS3D1TXtsxrFJ3Vu+d6I4juXuQrAw5Jfk WiJWgo4nkF1rJrZCZMCpKU8NPTKOZ5HmgBdXHsdmXd0MOnGh5U02XyYjHw5qwUpc 7tqtsAev7Wc2WBcssfMgAeor/TNKigtbGiiHM5sokjTbFodoO3BBM+ftweBp50Wo TlKBYRm4eUbwnY/guLiJkAbwyy9WngLH67l0kT+CMj3SJl1XMDXG3JSKlK0c6y7p lj1UuJ2Ud+k5uxwAJQOd9uv33zKxR9kqLcbHQjgoALeMlE7RSFSzUrQs1Op2rEuH c34Cw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdelkeeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttd dvjeenucfhrhhomhepfdftohifrghnucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehi mhhsohhprdhphhhpsehrfigvtgdrtghordhukheqnecuggftrfgrthhtvghrnhepffekve duffduvdehjedvfeekleeftddugeefheejudehgeeiudffgeeggeevfeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhmshhophdrphhhph esrhifvggtrdgtohdruhhkpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 6 Oct 2025 17:22:59 -0400 (EDT) Message-ID: Date: Mon, 6 Oct 2025 22:22:53 +0100 Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 Content-Language: en-GB To: internals@lists.php.net References: <14f591d4-aa1e-49dc-bc20-03cb493dc20c@app.fastmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 06/10/2025 20:18, Larry Garfield wrote: > The core point is this: Any async approach in core needs to treat the FPM use case as a first-class citizen, which works the same way, just as reliably, as it would in a persistent CLI command. That is not negotiable. > > If for no other reason than avoiding splitting the ecosystem into async/CLI and sync/FPM libraries, which would be an absolute disaster. I 100% agree. In fact, perhaps the single biggest benefit of having a core async model would be to reverse the current fragmentation of run-times and libraries. On 06/10/2025 19:50, Edmond Dantes wrote: > If you want to improve performance, you need to optimize SQL queries, > not try to execute them in parallel. This can bring down the entire > database (like it did today 🙂 ) You talk as though "the database" is a single resource, which can't be scaled out. That's not the case if you have a scalable cluster of SQL/relational databases, or a dynamically sharded NoSQL/document-based data store, or are combining data from unconnected sources. > a project with several tens of > thousands of lines of code was adapted for Swoole in 2–3 weeks. It > didn’t work perfectly, sometimes it would hang ... 2-3 weeks of development to get to something that's not even production ready is a significant investment. If your application's performance is bottlenecked on external I/O (e.g. data stores, API access), the immediate gain is probably not worth it. For those applications, the only justification for that investment is that it unlocks a further round of development to use asynchronous I/O on those bottlenecks. What would excite me is if we can get extensions and libraries to a point where we can skip the first part, and just add async I/O to a shared-nothing application. -- Rowan Tommins [IMSoP]