Who accesses the service layer?

  • Controllers (initiated by actions of users of the storefront)
  • Web services (SOAP and REST API calls)
  • Magento modules through service contracts
  • All of the above

devdocs.magento.com/guides/v2.1/architecture/archi_perspectives/service_layer.html#who-accesses-the-service-layer