A brief overview of what services are and how they are used.

Services compose of common business logic that are used across the application.

Each service contains functionality that are within a certain domain or context. For example, AlarmService can contain functionality such as setupAlarm,triggerAlarm, removeAlarm, etc. that all are within an Alarm domain/context.

It is common to have services making use of repositories or services for persisting or fetching data, but it is also not uncommon to have services that are independent of underlying repositories or services.

Last updated: 09 January 2020

Related articles