[Huawei Computer Examination Questions] Integration testing of microservices, JAVA solution

insert image description here

Recently updated blog

Solution to this topic: Integration testing of microservices

topic description

Now there are n container services, and the startup of the service may have certain dependencies (some services have no dependencies), and secondly, the startup and loading of the service itself will consume some time.
Give you an nxn two-dimensional matrix useTime, where useTime[i][i]=10 means that it takes 10 seconds for service i to start and load itself, and useTime[i][j]=1 means that service i starts dependent service j and starts, useTime [i][k]=0, it means that service i does not depend on service k.
In fact, 0<= i

Guess you like

Origin blog.csdn.net/hihell/article/details/130466741