Closed PSilvestre closed 5 years ago
I did some testing on your branch and found that the Sagas have very high response times, often more than 5000 milis, thus all asks timeout.
There is a Thread.sleep in the MockLoadBalancer on purpose. The objective is to cause it to timeout and try again with higher timeout-time. Is this what you are refering to?
If you delete those sleeps it should run a lot faster.
They are all deactivated, thus that should not be any problem.
You might wanna test it on your own:
val t0: Long = System.nanoTime()
val futureSaga = secShard ? ExecuteSaga(testSaga)
futureSaga.onComplete{
case Success(value) =>
val elapsedTime: Double = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - t0)
println(value + " took: " + elapsedTime + " " + TimeUnit.MICROSECONDS.toString)
}
Two general problems, are valid for my branch are:
SEC implemented with accompanying tests and mocks.