Real-time testing engine for AI-refactored legacy code.
Project details
ShadowDiff offers a dual-traffic testing engine specifically designed for AI-refactored legacy systems. By simulating production traffic and performing semantic diffing, it captures potential edge cases that could jeopardize deployment. This tool helps eliminate the risks associated with modernizing mission-critical backends while preserving their operational integrity.
ShadowDiff is a cutting-edge dual-traffic shadow testing engine designed specifically for modernizing AI-refactored legacy codebases. It addresses a critical challenge faced by enterprises as they transition from older systems, such as Java 7/8 Spring and Python 2 Django, to more contemporary cloud-native services like Go and FastAPI. While AI tools may successfully refactor approximately 95% of the code, ShadowDiff mitigates the inherent risks posed by the remaining 5% of subtle edge cases that can derail production deployments.
As organizations strive to enhance their backend systems, they encounter several risks, including:
ShadowDiff expertly replicates real-time HTTP traffic to validate AI-refactored services against legacy counterparts, ensuring robustness and reliability through the following features:
Integrates with Envoy Proxy and Istio Service Mesh, enabling asynchronous traffic cloning with no latency impact on application performance.
Uses 3-way differential analysis to filter out non-deterministic noise, ensuring developers only focus on genuine regressions that affect system stability.
Proficiently identifies and correlates SQL changes between legacy and new services, addressing issues like missing writes and transaction leaks without manual intervention.
Harnesses the power of Google Gemini for generating regression tests that pinpoint potential issues and deliver actionable remediation paths.
Automates the PR process through integration with the GitHub API, allowing for seamless handling of new identified issues and reducing manual oversight.
Facilitates deployment checks directly within CI/CD pipelines, ensuring that only verified code reaches production environments by assessing traffic quality metrics.
Employs ephemeral copy-on-write (CoW) methods for database operations, isolating test environments without polluting production databases.
To evaluate quality within a CI/CD pipeline, the following command can be utilized:
shadowdiff gate \
-dashboard-url=http://localhost:8083 \
-duration=15s \
-min-parity=100.0 \
-min-requests=50 \
-max-drifts=0 \
-allow-n-plus-one=false \
-allow-db-drift=false
ShadowDiff provides essential insights through a graphical dashboard, showcasing live traffic diffs and SQL mutation timelines, making it an indispensable tool for developers and enterprises looking to modernize their codebases while maintaining high reliability standards.
Comments
0Start the conversation
Share the first comment.