/magento226-async-experiments

Examples of common tasks in Magento 2 achieved using async techniques

Primary LanguagePHP

Magento 2 Async Experiments

Experiment One: Async Image Processor

Description

Intended as a drop-in replacement for core Magento 2 image processing

Architecture

Phase 1:

Get count of product images Chunk according to number of threads Feed each chunk into new sync command Create new sync command

Phase 2:

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.

To do

  • Research how Magento processes images
  • Decide on the best point to intercept the images
  • Decide on which operations (e.g. Resize) should be handled by the app
  • Create the base module
  • Create the adapter