redpipe
redpipe copied to clipboard
block thread
in the redpipe-example-helloworld
@Path("/")
public class HelloResource {
@GET
public String hello() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
return "Hello World";
}
}
will need 10 second when i send concurrent 10 requests...
Yes, you should not block the request threads.