Comment by sophacles
2 months ago
There's only like ~55 billion us banknotes in circulation (according to uscurency.gov). It wouldn't surprise me to find out that banks' counting machines scan each of them, and put the serial number and location into a database, and that database flags bad serial numbers and things like "this serial number is also claimed to be in a vault 1000 miles away" - causing the bill to be flagged, set aside, and turned over to the secret service.
The working set of data needed for this type of thing could probably be stored in a couple TB - small enough to be in a single (beefy) server's RAM.
Such a database could be sharded out insanely easily, too. Rather than having 1 BEEFY server with a couple TB of RAM, you could do a couple dozen servers with a more modest 256 GB, with each server having a strictly defined subset of serial numbers (ie, one server could handle notes with serial numbers ending in 00 or 01, another handling 02/03, etc.), and the load balancing becomes extremely simple.