How Datadog Used Claude and Cursor for Test-Driven Production Migration

Datadog engineers successfully refactored their Stream Router API by using AI tools Claude and Cursor to assist in a test-driven migration from a key-value model to a relational database schema. The process relied on strong modularity and a parallel infrastructure to ensure system stability.
Why it matters
This case study demonstrates the practical, productivity-enhancing application of AI in complex software engineering and legacy system modernization.
InfoQ Homepage News How Datadog Used Claude and Cursor for Test-Driven Production Migration
The original version of Stream Router, an API for managing routing in the metrics pipeline, was built as an eventually consistent system using a key-value (KV) model. As the routing table expanded, however, the KV database began hitting transaction size limits, and the most demanding operations slowed dramatically, taking up to 45 minutes due to thousands of sequential round trips.
In the KV model, the code had to reconstruct these relationships. It would pull tens of thousands of entries into pod processes and effectively act as a relational database in-process - handling logic that foreign keys would normally enforce in a relational system.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in