嚴格遵守 PDPL 下,邊緣生物識別讀卡器的 OSDP 範本同步與卡上範本延遲取捨
Handling OSDP template sync vs. Template-on-Card latency for edge biometric readers under strict PDPL rule
沙特利雅得一個企業門禁部署正比較卡上範本(Template-on-Card)與集中式範本同步,以兼顧亞秒級驗證延遲及 PDPL 對生物識別資料存放的要求。系統需同步約 6,000 個人臉範本,並遇到 OSDP 輪詢抖動及撤銷門卡後的邊緣快取更新問題。
Hi everyone,
We're architecting an on-prem physical access control deployment for a multi-tenant corporate facility in Riyadh (around 45 doors + lobby speed gates) and are hitting an architectural trade-off between sub-second authentication latency and biometric data residency requirements under Saudi PDPL.
Current Setup
- Edge Readers: PoE-powered HID Amico biometric reader panels (3.5" / 7" units with IR liveness detection + RFID/QR fallback)
- Door Controllers: HID Aero controllers connected over isolated PoE/access VLANs
- Head-End / Integration: On-prem access engine wrapping an HID access control system with an internal visitor QR service (Debian 12 VM, PostgreSQL + Redis queue)
- Reader-to-Controller Link: RS-485 OSDP v2 with Secure Channel (AES-128) enabled
he Bottleneck / Design Question
To minimize central storage of raw biometric templates for PDPL compliance, we're evaluating two modes:
- Template-on-Card (ToC) / Local Edge Match: Storing encrypted facial vectors on DESFire EV3 cards or strictly isolated on-device, so the controller only receives the validated credential ID over OSDP.
- Centralized Template Sync: Pushing delta updates of ~6,000 facial templates down to edge readers over the management VLAN during off-peak hours.
With OSDP Secure Channel polling (115200 baud over ~60m Belden cable runs) and simultaneous morning-rush arrivals at the lobby turnstiles, we're noticing occasional polling jitter when fallback QR/RFID events and biometric verification events queue together—plus edge cache invalidation headaches when a contractor badge is revoked mid-day.
For anyone who has built edge biometric or smart-building access pipelines:
- When pushing mid-day revocations to edge readers over segregated VLANs, do you rely on an MQTT/WebSocket push channel to the IP reader directly while keeping Wiegand/OSDP purely for door-relay signaling, or keep everything strictly through the controller bus?
- Has anyone benchmarked real-world door-unlock latency of Template-on-Card vs. on-device 1:N matching during peak lobby throughput?
Any pointers on bus timing, queue backpressure, or revocation sync patterns would be appreciated.
來源:DEV Community · dev.to