# Sync Service

## How

The Trigger of VTime always recreates the complete absences for a specific year of a specific employee, and two solving strategies can be employed:

1. Recreating the Big Picture Absences for a year for an employee.
	1. It's important to note that this approach may remove manual entries on Big Picture.
2. Calculating the difference between the current state and the state at the moment, and then adjusting only the differences
	1. It's worth noting that VTime does not allow shifting elements, so this method always involves both a removal and an addition operation. Therefore, the update endpoint is not used in any case (at least for  VTime).

## Where

The update trigger mechanism is currently located in RMS and will be done periodically. From a technical point of view it would make sense to split out this service from RMS and run it independently. But its also possible that RMS will sync periodically.
