Magento 2 Plug-in (AOD) architecture is harmful:

Image for post
Image for post

Magento 2 interception approach changes the behavior of a class function, but it does not change the class itself.

When the before and around plugin sequence is finished, Magento calls the first plugin after method in the sequence loop, and not the after method of the current plugin that was being executed by the around method.

Magento uses a lot of plugins, even at its core, it lowers request time by ~30%. This is especially notice in places where there is a lot of non-cached PHP logic going on (for example admin panel/cart/checkout/Ajax…

Yegor Shytikov

Magento/APP Cloud Architect. Melting metal server infrastructure into cloud solutions.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store