Chapter 6. Architectural Patterns

Architectural patterns, sometimes referred to as an architectural style, provide solutions to recurring problems in software architecture.

Though similar to software design patterns, they have a broader scope, addressing various issues in software engineering as opposed to simply the development of software itself.

In this chapter we will cover the following topics:

  • Model-View-Controller (MVC)
  • Service-oriented architecture
  • Microservices
  • Asynchronous queuing
  • Message Queue pattern

Model-View-Controller (MVC)

MVC is the most common type of Architectural pattern that PHP developers encounter. Fundamentally, MVC is an Architectural pattern for implementing user interfaces.

It largely works around the following methodology:

Get Mastering PHP Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.