modular development in magento 2
TRANSCRIPT
May 2, 2023
Modular development in Magento 2
Igor Miniailo
© 2013
Agenda1 Magento 2 goals
2 Modularity
3 Magento 1 coupling diagram
4 Decoupling
5Modularity examples
© 2013
Magento 2 Goals
Modern tech stack
Improved performance and scalability
Streamline customizations
Simplify external integrations
Easy installation and upgrades
High code quality and tests
© 2013
Magento 2 Goals
While Magento has always had a modular architecture, the current module boundaries are not always ideal….
© 2013
© 2013
Modularity Examples. Configuration
Problem: Store Config Model
Coupling on Store (Core module)
© 2013
Modularity Configuration. Solution
© 2013
Modularity Example. Shipping carriers
Problem: All shipping carriers are delivered in one module
© 2013
Modularity Shipping carriers. Solution
© 2013
Magento 2 Decoupling
© 2013
Last notice
Don’t forget Unit test your code, because the essence of Unit test to reveal coupling