spring-kotlin-deepdive icon indicating copy to clipboard operation
spring-kotlin-deepdive copied to clipboard

Multiple requests at the same time?

Open JamesXiao opened this issue 4 years ago • 0 comments

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

JamesXiao avatar Jan 14 '20 09:01 JamesXiao