Census Monitoring System
A real-time monitoring and alerting platform built for the first digital Census of Pakistan, tracking field operations & enumeration progress across 120k+ enumerators.
Features
- Live dashboard tracking enumerator progress by Province, district, tehsil, UC, and enumeration block
- Alerts for stalled operations, anomalies, and statistical thresholds
- Role-based access control for 15000+ stakeholders across federal, provincial, and district levels
- Geospatial visualisation of coverage on OpenStreetMaps with dynamic heatmaps and pins
- Sentry-integrated error monitoring and audit logging
Tech Stack
ReactViteTypeScriptNode.jsExpressPrismaPostgreSQLTailwindZustandMaterial UILeafletOpenStreetMapsSentryRBAC
Key Insights
- Hierarchical RBAC with federal/provincial/district tiers required careful policy design upfront
- Polling with short intervals proved more reliable than WebSockets for the network conditions in the field
- Prisma migrations made iterating on the schema straightforward as requirements evolved during the operation
- Virtualized pin rendering and map optimizations were necessary to maintain performance with 100k+ locations