spring-kotlin-deepdive
spring-kotlin-deepdive copied to clipboard
Multiple requests at the same time?
I added a Thread.sleep(10000) in the now() method, to simulate a time consuming task. Then open up two tab in Chrome to request http://localhost:8080/time/deferred at the same time. And I am expecting both the two requests will get their response in about 10 seconds, however, one of them respond in twenty seconds. Seems the requests are queued any way. How can I fix this? Many thanks