Should you separate Business/Complex logic from Network calls?
So I'm in the process of trying to figure out a good way to refactor some components at work. The reason is because they're rather large. And some of the ones that behave similarly are very repetitive. Here's a brief breakdown of how most of these components are setup currently: A component uses a service. The service only consists of one line HttpClient calls related to that part of the app. All the logic resides inside the component. My goal is to move some of this logic to a service. And then I would only leave the component specific logic inside the component. But my question is this: Should I create one service for the business logic and another that contains the network calls? For example, part of the app has very basic cart functionality. Would it be a good idea to create one service that has all the HttpClient calls for the cart and another for the logic? On one hand, I think they should be in separate files because of how many http calls there are. But on the other, I'm not sure how you would name the two services since they both pertain to carts.