Answer the question
In order to leave comments, you need to log in
Are the service and the request handler pipeline component, that is, the middlewire component, the same thing?
Are the service and the request handler pipeline component, i.e. the middlewire component, the same thing? If not, please explain the difference.
Answer the question
In order to leave comments, you need to log in
A service is an auxiliary component designed for auxiliary work, such as requesting and processing data, working with the file system, etc., middleware is directly designed to process a request and generate a server response. Services are usually used in controllers, this is as an abstraction layer, usually a service implements some kind of interface so that it can be mocked during unit testing. In short, they are completely different things.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question