Zaffre AxonDemo
← All articles

Time and Attendance Tracking: Best Practices for Modern Teams

Zaffre HRM Team · June 2, 2026

Time and attendance tracking is the most-frequent HR operation in any company. A 500-employee company logs over 1000 check-in/out events every working day, plus leave requests, overtime claims, shift adjustments and corrections. That is millions of records a year, and small errors add up. Here are the practices that make time and attendance tracking accurate, fair and compliant.

Why time and attendance tracking is hard

It looks simple ("did the employee come to work today?"), but in practice the answer depends on:

  • Did they punch in on biometric, or check in on web, or mobile, or did the desktop agent record activity?
  • Was there a network outage between the punch and the sync, so the event arrived late?
  • Were they on approved leave that overrides the absence?
  • Was the day a public holiday, an off-day, or a working weekend?
  • Did the shift start time apply, or were they on a different shift that day?
  • Was the late tolerance window 5 minutes or 15 minutes per policy?
  • Did the employee work overtime, and at what tier rate?
  • Did HR make a correction to a closed day, and is that correction audit-logged?

A basic time and attendance tracking system can get any one of these wrong. At scale, "occasionally wrong" becomes a payroll dispute every month.

Six practices that fix this

1. Single canonical event log

All sources of check-in (biometric, web, mobile, desktop, face-recognition) write to one append-only event log keyed by (company, employee, day, source). Reading attendance is a deterministic fold over the events for that day. Writing is upsert-only, so no application code can "drop" a check-in.

2. Idempotent writes

The same event arriving five times (mobile retry, biometric sync, desktop reconnect) still represents one check-in. Without idempotency, retries either create duplicates or silently lose data. How idempotent check-in works.

3. Shift-aware flag derivation

The "late / half-day / early-go / short-day" flag for a day is derived from the events plus the employee's shift on that day. The flag is not a stored value that gets updated separately. It is computed every time the day is read, so the flag can never disagree with the events behind it.

4. Leave that overrides attendance, atomically

When HR approves a leave on a previously-absent day, the day's flag flips from "absent" to "approved leave" without HR touching the events. When leave is cancelled, the flag flips back. The integration is a derived-state rule, not a manual reconciliation.

5. Penalty and overtime rules as company-level policy

"Late beyond 15 minutes = half-day" is a policy rule, not a per-employee adjustment. The HRM applies the rule deterministically across every employee in the company. HR can override per-employee with an audit-logged exemption.

6. Audit trail on every correction

Closed-day corrections by HR are valid (employees forget to punch, biometric devices fail) but every one must record actor, timestamp, before-value and after-value. An auditor asking "show me every correction made in Q3" should get a deterministic answer.

Time and attendance tracking at large scale

Above a few hundred employees, poorly built time and attendance tracking platforms slow down or crash. The patterns that hold up:

  • Clustered API tier: multiple identical worker processes behind a load balancer.
  • Dedicated worker pool for long jobs (year-end exports, attendance recomputation, payroll runs).
  • Compound database indexes leading on company ObjectId for every tenant collection.
  • Pre-aggregated "today" view so the company-wide dashboard doesn't run a live aggregation on every page load.
  • Pagination on every list endpoint, including silently capped responses.

Read more on running an HRM at large database scale.

What to expect from Zaffre HRM's time and attendance tracking

Zaffre HRM ships the full set: multi-source check-in (biometric + web + mobile + desktop + face-recognition), idempotent attendance keyed on (company, employee, day, source), shift-aware deterministic flags, leave/attendance/payroll integration, policy-driven penalty and overtime rules, immutable audit trail, real-time dashboards. Built for organizations of 1000+ employees, with the same code path serving 50 employees or 5000. See the attendance management solution page or book a demo.

Related reading