I have a question about the architecture I'm working with.
we have a backend restful service, a data layer (which is implemented by python eve, as well as a relaxation service) and a database. The data (access) layer itself is an independent emergency api.
In our backend service application, we have a customized e-python repository that makes calls to the data (access) level, and then the data level will request everything that is caused by a call from the database.
The reason that it is separated is because we want to isolate the data logic (query logic) from our business logic (backend service).
The cost is obvious, one more level, one more round of input-output for each request.
Can someone with experience in architecture say that this separate level of data access is good practice or not and why?
Considering the architecture you are talking about, your project should be large enough to justify the cost of its development. For small projects, this architecture will be excessive.
Assuming your project is big enough, yes; It is always convenient to separate the DAL, BLL and Application levels. Refer to this and this .
The advantage is pure separation, which improves understanding, given that you control every part and reduce maintenance costs.
, , ( , -). ; . ; .
. , - . , . ; . - , . , - , .
. unit test . - , .. .
, , . , , IPC, , , , , ( ). IPC , . , API , . , .
, , : . , . , . , MySQL Cassandra Hadoop, DAA ( ), . .
, ( ) ( , ). , , . , , - , , , .
Source: https://habr.com/ru/post/1671644/More articles:Python 3.6 - Reading encoded text from a file and converting to a string - pythonIncreasing C ++ Sequence - c ++How to mock method e in a log - androidConvert matrix_float3x3 rotation to SceneKit - scenekitThe identity of the entityframework core element contains global reduced columns - .net-coreInitializing component class variables - angularSwift 3 scrollToRowAtIndexPath became scrollToRow - swift3UAC Automation Sikulix / Jython - jythonmokeito throwing InvalidUseOfMatchersException - junithttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1671649/designing-dal-and-bll-singlemultiple-data-repository-for-the-related-tables&usg=ALkJrhh9hosVQhPl7eqkqXPAOZB3b1mOhQAll Articles