How and Why We Migrated from Python to Go in Our Main Recommendation Service
summary
A team at Avito moved their main recommendation service from Python to Go to fix latency and resource problems caused by adding a second-level CatBoost ranking model on top of first-level ML models. The talk explains their decision process (including Python optimizations attempted first), how they integrated CatBoost with Go to run the model in production, and the resulting improvements in latency, memory, and CPU usage.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:06Vita recommendations
- 2:08Recommendation service architecture
- 4:57Python service problems
- 6:21CPU tasks pool executor
- 9:12Python service profiling
- 12:21Shared memory optimization
- 13:03Splitting service in two
- 14:29Go feature preparation
- 17:20Go model integration
- 19:03Migration challenges
- 21:11When to migrate to Go
- 22:17Python optimization tips
- 24:01Summary
- 24:22Q&A
