Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

block thread #52

Open
pipinet opened this issue Feb 16, 2019 · 1 comment
Open

block thread #52

pipinet opened this issue Feb 16, 2019 · 1 comment

Comments

@pipinet
Copy link

pipinet commented Feb 16, 2019

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...

@FroMage
Copy link
Owner

FroMage commented Feb 26, 2019

Yes, you should not block the request threads.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants