Name screening engine at scale
Indexes 11.2M records from an 18.4 GB file at 55,000+ records/s in under 1.2 GB of RAM, and "Mohamed" finds "Muhammad".
- Problem
- Screening a customer against millions of people and organisations (names, aliases, countries) needs search that is fast, tolerant of spelling variants, and light on memory.
- My role
- Software engineer. I designed and built the indexing pipeline, the phonetic search and the analyst interfaces (React and JavaFX).
- A hard decision
- Stream instead of load: the XML is read with StAX by one producer and handed to consumer threads through a bounded queue, so backpressure keeps memory flat whatever the file size. Phonetic keys (Double Metaphone) handle spelling variants.
- Result
- Measured on an 18.4 GB file (11.2M records, 8 cores): 55,000+ records/s under 1.2 GB of RAM, with the maximum GC pause cut from 190 ms to 32 ms.
- Stack