Design Multi-Agency Records Search With Case-Level Sharing Controls
Last updated: November 29, 2026
Quick Overview
Design full-text and structured search over incident reports, people and vehicles in a records management system used by thousands of agencies, where results must respect agency tenancy, per-case restrictions and time-limited cross-agency shares.
Axon
November 29, 20260
0
0 solved
Design full-text and structured search over incident reports, people and vehicles in a records management system used by thousands of agencies, where results must respect agency tenancy, per-case restrictions and time-limited cross-agency shares.
Axon Records holds incidents, persons and property for many agencies, and investigators increasingly search across partner agencies and external databases. The interviewer wants a search architecture where authorization is correct by construction, indexing stays fresh, and CJIS requirements such as auditing every query are met.
What the Interviewer Expects
- Index design with tenancy and access fields embedded per document
- Query-time filtering by an access token of agency, groups and active shares
- Handling restricted cases (internal affairs, juveniles) that only named users may see
- Near real-time indexing from the records database via change data capture
- Audit log of every search and result opened
- Federation to third-party databases without copying their data
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you revoke a share and guarantee results disappear immediately?
- How do you prevent a facet count from leaking the existence of a restricted case?
- How would you handle fuzzy name matching and aliases?
- Should large agencies get dedicated indices, and when?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Search by free text (narratives), structured filters (date, offense code, location), and entities (person name with fuzzy match, plate, DOB). Latency p95 under 500 ms. Updates visible within seconds. ...
High-Level Design
Source of truth is the records database (partitioned by agency). A CDC stream (Debezium style into Kafka) feeds an indexer that denormalizes incident plus linked persons and vehicles into search d...