Intended as a drop-in replacement for core Magento 2 image processing
Get count of product images Chunk according to number of threads Feed each chunk into new sync command Create new sync command
A custom Magento module defines an adapter, which passes images to an external microservice app.
The app then queues images and processes them asyncly, passing the results back to Magento.
- Research how Magento processes images
- Decide on the best point to intercept the images
- Rewrite the
catalog:images:resize
command to be async- Use https://github.com/clue/reactphp-block to create the event loop
- Use https://github.com/reactphp/filesystem to interact (load, save) with the filesystem
- Rewrite the
- Decide on which operations (e.g. Resize) should be handled by the app
- Create the base module
- Create the adapter