News

Updates from AI4SE Lab

← All news

AI4SE Lab Presents MicroSim at CCF ChinaSoft 2026

Yiran Ma presented MicroSim at CCF ChinaSoft 2026 in Tianjin, combining runtime-state-aware modeling, discrete-event simulation and LLM-assisted policy optimization to evaluate microservice traffic control before deployment.

Yiran Ma presents the MicroSim research on runtime-state-constrained microservice traffic control at CCF ChinaSoft 2026 in Tianjin.
Yiran Ma presents the MicroSim research on runtime-state-constrained microservice traffic control at CCF ChinaSoft 2026 in Tianjin.
23.5%

lower average response time · BookShop simulation

71.1%

lower average response time · Acme Air simulation

86.67%

joint SLA success rate · 26 of 30 trials

On 6 November 2026, Yiran Ma presented the MicroSim study at CCF ChinaSoft 2026 in Tianjin. The report, Runtime-State-Constrained Modeling and Simulation of Traffic Control in Microservices, was delivered at the forum on LLM-driven intelligent software systems development and operations. The work brings together researchers from Beihang University and Northeast Petroleum University.

Modeling and simulation

The study addresses overload in microservice systems. Under high concurrency, requests can accumulate, resource queues can grow, and pressure can propagate along service dependencies. MicroSim provides a model-based environment for exploring these effects and comparing traffic-control policies before deployment, helping engineers examine latency and throughput trade-offs under different policy settings.

MicroSim connects the system model, runtime state and traffic-control rules at the level of individual requests. It covers four control points:

  • Request admission
  • Component concurrency
  • Resource queue capacity
  • Dependency calls

Policies use the number of in-flight and active requests, queue lengths and ongoing dependency calls to decide whether to admit, defer, reject or restrict a request.

A discrete-event simulation engine embeds these decisions in the request lifecycle. State changes, permit releases and queue wake-ups are coordinated so that a control decision influences subsequent request events consistently. Engineers can therefore compare combinations of control policies using a consistent request-level model.

Experimental evaluation

The benchmark evaluation used BookShop and Acme Air to examine average response time, P95 response time and throughput. Under the reported configurations, enabling traffic-control policies reduced average response time by 23.5% for BookShop and 71.1% for Acme Air relative to the corresponding configurations without these controls. The measurements also make it possible to examine the throughput trade-offs associated with latency improvements.

To assess the simulation against a real system, the study compared MicroSim with a live Acme Air deployment using corresponding admission, concurrency, dependency and queue controls. Both showed rising latency, throughput saturation or decline, and higher rejection rates as burst loads increased. Admission control began rejecting requests at an offered load of 550 requests per second in both systems.

With all four controls enabled, the simulation-to-system mean absolute percentage error was:

  • 6.90% for successful throughput
  • 18.45% for P95 response time

The comparison also identified differences associated with network delays, scheduling, JVM garbage collection and database caching.

LLM-assisted policy optimization

The work further explored an LLM-assisted feedback loop for tuning policy parameters against joint service-level agreement requirements.

A prompt incorporating constraints and previous simulation results met the joint SLA in 26 of 30 trials (86.67%), using an average of 4.35 simulations.

This connects runtime-state-aware modeling and simulation with AI-assisted policy search, supporting traffic-control decisions before deployment.