Hi all,
I'm learning about architecture and am making a first attempt at using the appropriate layers.
So I'm integrating with an external API and store my own copy of the data. I've got the following modules so far
Core layer
one or more _CS modules, with business entities
_Sync module
Library Layer
_IS module
So my first question I run into : my business entities have a fundamentally different structure than the API structure. So I'm thinking of doing the mapping between these 2 data models inside the _Sync module.
But is this indeed what normally would be done, or would there be some sort of _Map modules taking care of translating data between different data models ?
I think I came across some descriptions, saying that the Integration module also "normalizes" the data retrieved from external systems, I'm not sure but that sounds a bit like doing some transformations on it to better fit our internal data model. But to me that feels a bit like we are allowing the Library layer, that should be business agnostic, become to some level dependent on the business layer ??
Any insights from real life projects ?
If you made it here, thanks for reading through the long post,
Dorine
Hi Dorine,
I wouldn't think that a _Map module is needed for that. Indeed, mapping should be done during synchronization, hence in the _Sync module.