Engineers at the New York Times ML platform team share how they used Go to operationalize a Python-based ML ranking model for targeted email campaigns at scale. The core challenge was bridging a Go-based platform with a Python ML model to generate 40M+ user-content recommendations. The solution uses interprocess communication via shared memory (shims), where a Go service packs tensor data into shared memory regions that a Python inference server (NVIDIA Triton) reads directly. Go handles initialization, batching tensors by type, checksum validation, worker pools, and goroutines for throughput. The result: cohort generation time dropped from hours to minutes, with statistically significant gains in user engagement.
•14m watch time