I decided to use PHP for my last project, coming from the Java world.
I searched online but it seems that all answers are quite complex to implement and I thought there would be an easier way.
The problem is straightforward how to do parallel processing/tasking in PHP? The diagram below illustrated what I want to achieve, I am creating a simple page something like a product where users can add product info and put some images. Images are stored in Blob storage like s3, before images are stored they are resized on the served/also in the front end but that is not the point here.
In Java I would use multithreading to resize each image and save it to S3 it will definitely speed up the process as one image will not wait for the previous one to be resized and will not wait for the previous one to be stored in S3. How can I achieve this in PHP, assuming that my machine has 1,2,3 ... n CPUs?