How does the MVC+ Service layer architecture work?

Asked

Viewed 756 times

1

I’m trying to find some documentation for this, if anyone has a book that addresses the subject please inform.

1 answer

0

In this case, the service layer is interpreted as part of the MVC (vision-controller model) architecture and not as something additional.

The view shows the user the interface and options he will have, so when selecting something, the controller decides how to treat the service and calls the model to meet the user’s request.

If the service is something internal and you can include it in the controller and/or model, this is the place to do it. If the service is external, probably your controller will access it as if it were a model, even if part of the logic is done by the service.

For example, if you have software like Soa, it typically does not include the Vision part. To integrate software Sounds like an MVC, MVC will probably use Soa as a model.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.