MIRAGE: Online LLM Simulation for Microservice Dependency Testing
XinRan Zhang

TL;DR
MIRAGE introduces an online LLM-based simulation method for microservice dependencies, achieving high fidelity in testing scenarios by dynamically generating responses based on source code and traces.
Contribution
This paper presents MIRAGE, a novel runtime approach using LLMs for dependency simulation that outperforms static artifact methods in fidelity and coverage.
Findings
MIRAGE achieves 99% fidelity in status-code and response-shape.
Static artifact methods have 0-12% fidelity in error scenarios.
Dependency source code alone suffices for high-fidelity simulation.
Abstract
Existing approaches to microservice dependency simulation--record-replay, pattern-mining, and specification-driven stubs--generate static artifacts before test execution. These artifacts can only reproduce behaviors encoded at generation time; on error-handling and code-reasoning scenarios, which are underrepresented in typical trace corpora, record-replay achieves 0% and 12% fidelity in our evaluation. We propose online LLM simulation, a runtime approach where the LLM answers each dependency request as it arrives, maintaining cross-request state throughout a test scenario. The model reads the dependency's source code, caller code, and production traces, then simulates behavior on demand--trading latency (~3 s per request) and cost (0.82 per dependency) for coverage on scenarios that static artifacts miss. We instantiate this approach in MIRAGE and evaluate it on 110 test…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
