'When should Data services be used as a data abstraction layer for the Business services which currently are directly accessing the data source?
Recently I was suggested to use Data services as a data abstraction layer for my Spring Boot Business services which currently talk directly to various data sources like Oracle DB, Elasticsearch etc. using business specific queries.
However, I am still not sure about why must I use Data services.
- Doesn't it add an extra hurdle for my business services in fetching data?
- Also, Data services would return a large number of data records as they won't be specific to any business scenario. Wouldn't it cause memory leak due to large amount of in memory data?
- And what are some great technologies which can be used to create Data services. I am exploring Dremio and GraphQL.
To understand the benefits of data services, I think, I should first understand under what circumstances is it absolutely necessary to go for them and when not?
Waiting for some great suggestions. Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
