System Design Atlas

Shift planning with qualifications and time tracking

03 / 10Worked example

Scale estimates

Check rest periods as time differences. Which conditions ensure a valid result?

The next shift is on the following day.

Starting point Validity through and including 16:00 is required.

Assumptions for the example case

A fictional maintenance operation with a defined qualification for each shift. The example requires 11 hours of rest between planned shifts; this is an exercise assumption and does not replace an employment-law review. All quantities, thresholds and operational objectives are illustrative assumptions.

Shifts and bookings

Shifts and time entries as separate quantities

8 h shift08:00–16:00
Schichtdauer → Ruheabstandthen 11 h
11 hours restNext start 03:00
10,000 employees4 time entries each
Offline-Apps → Ereignis-Inbox40,000 time entries/day
Event inboxDeduplicated input

Shift duration, rest periods and daily time entries test different rules and capacity requirements.

An 8 h shift, an 11 h rest period and a separate stream of 40,000 time entries per day.

Illustrative load and domain calculations

  1. 01

    Shift duration

    8 hours

    16:00−08:00 UTC

    For the designQualification must be valid until at least 16:00.

  2. 02

    Rest period

    11 hours

    Next start 03:00 UTC minus end 16:00 UTC the previous day

    For the designExactly 11 h is allowed in the model.

  3. 03

    Time entries

    40,000/day

    10,000 employees ×4 bookings

    For the designDevice repetitions do not increase working time.

Check rest periods as time differences.

Check rest periods as time differences.

UTC instants make the time difference unambiguous.

The next shift is on the following day.

8 h to midnight plus 3 h = 11 h. 10,000×4=40,000; Replay does not increase the amount.

Alternative considered
Times without dates can produce incorrect intervals.
Trade-off
Local display needs time zone.
Reassess
Daylight-saving changes require additional tests.

Try it yourself

Calculate the interval from 16:00 to 03:00 the next day and the daily number of time entries.

A hint for your attempt

The next shift is on the following day.

Compare with a possible solution
distance
8 h to midnight plus 3 h = 11 h.
Bookings
10,000×4=40,000; Replay does not increase the amount.

Apply to your project

How does this principle apply in your own project: Check rest periods as time differences.

Step 4: Offline identifiers preserve the time entry. Which conditions ensure a valid result?