1.7. Service to Worker

Service to worker performs core request handling and invoke business logic before control is passed to the view. It centralizes control and request handling to retrieve a presentation model before turning control over to the view. The view generates a dynamic response based on the presentation model. The Service to Worker pattern performs request handling and invokes business logic before control is passed to the view. 

UML representation


The following is a benefit of using the Service to Worker pattern:
  • Improves separation of concerns

When to Use

You should use the Service to Worker pattern to:
  • Centralize business logic for requests