react/child-process is very flexible and can work a lot of ways but sometimes you don’t want to be bothered with the details of how it works and just want a simpler API to do that.
He mentions his
wyrihaximus/react-child-process-pool package that makes working with the pool of processes easier and covers some of the "under the covers" handling behind it. He then shows an example of it in use, creating a pool that executes database queries via Doctrine’s DBAL functionality to select the number of users from the
users table. He then refactors it a bit using the
wyrihaximus/react-child-process-closure functionality to make the child processing of a closure simpler.