6/12
Technical Architecture & AI Engineering · 7 min read

Dependency and Task Scheduler With Topological Sort and Cycle Detection

Build a DAG task scheduler in TypeScript using Kahn's topological sort, descriptive cycle-path diagnostics, parallel execution waves, and bounded max-concurrency orchestration.

Question 1 of 3

During a peak traffic surge, your implementation of Code Design 6: Dependency / Task Scheduler (TopoSort) experiences elevated P99 latency and upstream timeouts. What is the immediate engineering leadership action?

Question 2 of 3

When designing Code Design 6: Dependency / Task Scheduler (TopoSort), how should an engineering lead ensure zero data loss during network partitions?

Question 3 of 3

What is the most critical metric to monitor continuously in Code Design 6: Dependency / Task Scheduler (TopoSort) to detect degradation before customers report outages?