Design Door Access Control That Keeps Working Offline

Last updated: November 29, 2026

Quick Overview

Design how a badge tap at a door gets an unlock decision in under 300 ms, when credentials, schedules and lockdown state are managed in the cloud but the site's internet can go down for hours.

Verkada
System Design
Software Engineer
Verkada
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design how a badge tap at a door gets an unlock decision in under 300 ms, when credentials, schedules and lockdown state are managed in the cloud but the site's internet can go down for hours.

Verkada sells cloud-managed door controllers, and a door that will not open because an ISP is down is a safety and trust problem. The interviewer checks that you put the decision at the edge, keep the cache consistent, and treat revocation and lockdown as the hard cases.

What the Interviewer Expects
  • Makes the unlock decision locally on the controller from a synced cache
  • Defines what is synced: users, credentials, groups, door schedules, overrides
  • Uses versioned incremental sync with a full-resync fallback
  • Treats revocation and lockdown as high-priority pushes
  • Buffers access events locally and uploads them in order after reconnect
  • Discusses fail-secure versus fail-safe behavior per door
Key Topics to Cover
edge computing
cache sync
event sourcing
offline-first
access control
safety
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • An admin revokes a fired employee's badge while the site is offline. What is the risk window and how do you shrink it?
  • How do you trigger a site-wide lockdown in under a second?
  • How would mobile credentials over Bluetooth fit into this design?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Unlock decision under 300 ms. Works with no internet for days. Changes in the cloud (new hire, revoked badge, new schedule) reach doors within seconds when online. Every access attempt is logged and v...

High-Level Design

Reader sends the credential to the site controller. The controller evaluates against its local database: credential, user, groups, the door's access levels and time schedules (in the site's timezone),...


Submit Your Answer
Markdown supported

Related Questions