AndroidAsync icon indicating copy to clipboard operation
AndroidAsync copied to clipboard

How to do server support Multi-Threading and High concurrency

Open CCint3 opened this issue 5 years ago • 0 comments

AsyncHttpServer server = new AsyncHttpServer();

server.get("/", new HttpServerRequestCallback() { @Override public void onRequest(AsyncHttpServerRequest request, AsyncHttpServerResponse response) { Thread.currentThread().getId(); response.send("Hello!!!"); } }); server.listen(5000);

The above code is single threaded. How to support multi-threading and high concurrency?

CCint3 avatar May 18 '20 04:05 CCint3