case-studies/checkpointbi.md -- less

CheckPoint Platform

Workforce and visitor management SaaS | CheckPoint Business Intelligence | private company project, sanitized

context

CheckPoint is a multi-tenant SaaS for workforce and visitor management on construction and facilities sites: RFID and QR badge access at the gate, digital enrollment and onboarding, attendance and worker sessions, roll calls and muster, safety alerts, SMS and link messages to workers, visitor and subcontractor management, vehicles and parking, scheduled compliance reports, and live cameras. A tenant is a client company, a site is a job site, and an organization is a subcontractor working on it.

The backend is one FastAPI service of about 70 modules on SQL Server (parameterised SQL over pyodbc, no ORM) with Redis for sessions and caching; the frontend is a React single-page app; nginx on Ubuntu is the edge; the API runs on Windows Server as a service; RFID readers talk to a Python TCP ingestor; MediaMTX serves the cameras; Twilio carries the SMS.

my role

Lead engineer since September 2025, with 1,100+ commits across the backend, the frontend, the nginx edge and the RFID service: by git blame, about 60% of the backend's application code and about 90% of its tests, the delivery pipelines, and about half of the frontend source. All 10 architecture decision records, 14 runbooks and 2 incident postmortems are mine, as are the 70 service pages that document the backend.

how it fits together

  • Badges: RFID readers stream reads over TCP to the ingestor, which deduplicates and batches them into SQL Server; the API turns them into sessions, scan history and reports for the web app and the gate scanner app.
  • Cameras: cameras are pulled over RTSP into a MediaMTX pair behind a floating IP, and nginx checks the viewer's session on every HLS request before serving it.
  • Messages: the API sends SMS and MMS through Twilio under a segment-based throttle and the carrier compliance rules, with delivery logs and public link pages.
  • Delivery: Azure DevOps pipelines build each change, deploy it to an idle A/B slot, run the tests and a health check, swap nginx to it, and roll back on failure.
  • Reliability: Prometheus, Alertmanager and Grafana were set up to watch the hosts, Redis and MongoDB, with alert rules written from real incidents.

also shipped

  • Tenant time zones: per-site IANA zones with a tenant default, a full UTC migration with backfill, and the stored procedures rewritten with AT TIME ZONE; cut over in production in June 2026.
  • Subscriptions: a plan catalog with per-tenant quota overrides, an effective-limit resolver and quota enforcement on every create.
  • Audit and impersonation: one audit-event table with actor, impersonated-by, before and after state and a correlation id, written asynchronously so it never blocks a request; operator-only act-as sessions, tenant-confined and audited.
  • Authorization: seven ADRs that moved the API to deny-by-default authorization with site scoping, and 21 access-control findings fixed.
  • Docs and tests: a service page for every module, a documented OpenAPI surface of 418 paths, and a test suite of more than 1,600 tests.

the case studies

  • cameras/ -- live video gated per manifest and segment, latency from about 10 s to 1-2 s, NVR discovery and PTZ.
  • rfid/ -- ingestion fed at about 3,900 reads per second, and a 585M-row staging table cleared.
  • messaging/ -- outbound SMS 14x faster, within A2P 10DLC and TCPA rules.
  • reliability/ -- the Redis Cluster expansion after a login outage, the MongoDB replica set, monitoring, and a DNS outage caught and reversed.
  • delivery/ -- zero-downtime A/B deploys on Windows, a multi-site edge and its hardening.
  • dr-and-scaling/ -- a hybrid disaster-recovery design, the two-site SQL Server HA/DR plan and an 80-finding scaling audit.

stack

Python FastAPI SQL Server T-SQL Redis MongoDB React nginx MediaMTX keepalived Twilio Azure DevOps Prometheus Grafana Ubuntu Server Windows Server

outcome

  • One platform: 1,100+ commits, about 70 backend modules, more than 1,600 tests.
  • 10 ADRs, 14 runbooks and 2 incident postmortems the team now works from.
  • Six pieces of that work, each with its numbers, in the case studies above.

Sanitized case study -- no customer, site or host names, IP addresses, endpoints, or credentials.