Cooking Spaghetti for the Graph
summary
A team that scores credit risk in real time migrated their ML pipeline code from unstructured scripts to DAG-based graphs to standardize workflows, event monitoring, artifact collection, testing and debugging while keeping complexity manageable. The talk describes their approach and shows a simple in-memory graph engine implementation that supports control constructs and parallel execution to run pipelines.
AI-written summary · about
chapters (16)
- 0:00ML pipelines intro
- 2:32Legacy code challenges
- 5:02Structuring with protocols
- 8:58Error handling with decorators
- 10:24Transition to graph approach
- 13:15Building the graph engine
- 17:32Execution engine and async
- 18:59Implementing Switch Case
- 21:47Fallback operator for resilience
- 23:54Event metrics management
- 26:51Node data exchange
- 27:57Artifact storage and testing
- 29:24Graph approach benefits
- 30:29Scaling the solution
- 33:22Key takeaways
- 35:26Q&A
