Common patterns
As we mentioned before, we don’t have to create a new architectural pattern every time we start working on a new system. There are a lot of already-tested and well-documented architectural patterns and approaches that we can begin with. An important aspect to consider is that you can combine techniques if it suits your system, but please be careful because you can quickly end up with a mess if you are not careful.
Some of the patterns that we will look at in this section are the following:
- The layered pattern
- The client-server pattern
- The model-view-controller pattern
- The microservices pattern
- The CQRS pattern
- UI patterns:
- Micro frontends
- Flux
- Jamstack
The layered pattern
One of the first architectural patterns I ever worked with was the layered pattern, also known as the n-tier pattern. The layered pattern is also one of the easiest to understand, especially for developers at the beginning of their career, because it works...