12
Understanding Layering
In this chapter, we explore the inherent concepts behind layering. Layering is a popular way of organizing computer systems by encapsulating major concerns into layers. Those concerns are related to a computer vocation such as data access instead of a business concern such as inventory. It is essential to understand the concepts behind layering as other concepts were born from layers, and they are very common.
We start this chapter by exploring the initial ideas behind layering. Then, we explore alternatives that can help us solve different problems. We use both anemic and rich models and expose both pros and cons in action. Finally, we quickly explore Clean Architecture, which is what I call an evolution of layering. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access