Storage System

Let’s learn about the list method used by basic storage systems in clean architecture.

When we developed the use case, we assumed that it will receive an object that contains data and exposes a list method. This object is generally nicknamed “repository,” since it’s the source of information for the use case. However, it has nothing to do with the Git repository, and we need to be careful not to confuse the two.

The storage lives in the fourth layer of clean architecture, the external systems layer. The elements in this layer are accessed by internal elements through an interface, which exposes a given set of methods. In this case, only the list method is exposed. It’s worth noting that the level of abstraction provided by a repository in clean architecture is higher than that provided by an ORMObject-Relational Mapping is a software programming technique that allows us to access relational databases in abstract objects. in a framework or by a tool like SQLAlchemy. The repository only provides the endpoints that the application needs, with an interface tailored to the specific business problems the application implements.

Get hands-on with 1400+ tech skills courses.