11
1/21/22 Modular development in Magento 2 Igor Miniailo

Modular development in Magento 2

Embed Size (px)

Citation preview

Page 1: Modular development in Magento 2

May 2, 2023

Modular development in Magento 2

Igor Miniailo

Page 2: Modular development in Magento 2

© 2013

Agenda1 Magento 2 goals

2 Modularity

3 Magento 1 coupling diagram

4 Decoupling

5Modularity examples

Page 3: Modular development in Magento 2

© 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

Page 4: Modular development in Magento 2

© 2013

Magento 2 Goals

While Magento has always had a modular architecture, the current module boundaries are not always ideal….

Page 5: Modular development in Magento 2

© 2013

Page 6: Modular development in Magento 2

© 2013

Modularity Examples. Configuration

Problem: Store Config Model

Coupling on Store (Core module)

Page 7: Modular development in Magento 2

© 2013

Modularity Configuration. Solution

Page 8: Modular development in Magento 2

© 2013

Modularity Example. Shipping carriers

Problem: All shipping carriers are delivered in one module

Page 9: Modular development in Magento 2

© 2013

Modularity Shipping carriers. Solution

Page 10: Modular development in Magento 2

© 2013

Magento 2 Decoupling

Page 11: Modular development in Magento 2

© 2013

Last notice

Don’t forget Unit test your code, because the essence of Unit test to reveal coupling