# How we migrated a live routing system using AI-assisted refactoring

DevFeed: [How we migrated a live routing system using AI-assisted refactoring](<https://devfeed.tech/articles/how-we-migrated-a-live-routing-system-using-ai-assisted-refactoring-2268.md>)

Original publisher: [Read original article](<https://www.datadoghq.com/blog/engineering/ai-assisted-storage-migration/>)

Author: Arnold Wakim

Published: 2026-06-23T00:00:00Z

Content type: article

Language: en

Sources: [Datadog | The Monitor blog](<https://devfeed.tech/sources/datadog-the-monitor-blog.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [cursor](<https://devfeed.tech/topics/cursor.md>), [Kafka](<https://devfeed.tech/topics/kafka.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [claude](<https://devfeed.tech/tags/claude.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [migration](<https://devfeed.tech/tags/migration.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [production](<https://devfeed.tech/tags/production.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [routing](<https://devfeed.tech/tags/routing.md>), [storage](<https://devfeed.tech/tags/storage.md>)

## AI overview

An engineering account of migrating Stream Router's storage architecture with AI-assisted, test-driven refactoring while preserving live production traffic.

## Source excerpt

Using AI-assisted refactoring, we migrated our live routing brain to a relational model, safely validating changes against live production traffic.