How many design patterns in Magento 2?

Magento has a total of 12 design patterns. These patterns are given below:

  1. Factory Pattern
  2. Singleton Pattern
  3. Model View Controller Pattern
  4. Front Controller Pattern
  5. Registry Pattern
  6. Prototype Pattern
  7. Iterator Pattern
  8. Object Pool Pattern
  9. Service Locator Pattern
  10. Lazy Loading Pattern
  11. Observer Pattern
  12. Module Pattern