srzafkiell@dev
case-studies/checkpointbi/delivery.md -- less

Delivery

Zero-downtime deploys on Windows, and a multi-site edge | CheckPoint Business Intelligence | private company project, sanitized

context

Production is a FastAPI service running as a Windows service under NSSM, a React build served by nginx on Ubuntu, an RFID ingestor, a landing site, and the nginx configuration itself: five deployables, two operating systems, one small team.

problem

Deploys were manual, with no test gate, no health check and no automatic way back. The edge configuration lived only on the server, and a reboot could take it down: in September 2026 the production site was dark for about 22 hours because nginx's startup check hung resolving the certificate authority's OCSP responder, and the packaged service unit never retried.

what I did

  • Built five Azure DevOps pipelines on self-hosted agents, with the configuration kept in variable groups and injected into each service's environment.
  • Gave the backend A/B slots: each deploy installs into the idle slot, builds a virtual environment keyed by the requirements hash, runs the test suite, starts the slot, polls its health endpoint, swaps nginx to it and stops the old slot, keeping the last five releases. A failed health check rolls back before any user reaches the new slot.
  • Made the frontend deploy an atomic symlink switch that takes about a minute, and the nginx deploy a push-to-apply: every edge VM pulls the configuration, snapshots the current one, tests it and reloads, so the same configuration fans out to every site (two data centers and the cloud edge), each answering its health check with its own name.
  • Split the environments in May 2026: the apex redirects to www, the app, API and dev tiers each have their own hostnames, and the dev tier is allow-listed.
  • Wrote the bootstrap scripts for a fresh Windows API host (Python, NSSM, the ODBC driver, both slots) and a fresh nginx VM (staging directory, one root helper, one sudo rule).
  • After the 22-hour outage, root-caused it (OCSP stapling plus a unit that never restarts), hardened the 7 vhosts, added the first rate limiting on the edge and prepared the DNS zone for a move to Cloudflare.

stack

Azure DevOps Azure Pipelines NSSM Windows Server nginx Ubuntu Server systemd PowerShell Bash

outcome

  • A backend release takes 4.5-5.3 minutes end to end with zero downtime, with the tests and a health check in the path and automatic rollback; the first green production run was in May 2026.
  • One nginx configuration, deployed the same way to every site; a frontend release in about a minute.
  • Reproducible hosts: new API and edge servers come from scripts, not from memory.

Sanitized case study -- no hostnames, IP addresses, or credentials.