T
T
Toster1002015-11-12 17:09:22
Java
Toster100, 2015-11-12 17:09:22

What is the best way to organize intensive networking in Java?

Let's say there is a task, most of which is working with the network (sending requests, waiting for responses), and processing responses is relatively simple. Let it be sending an HTTP-get and parsing the result.
Of course, you want to execute queries in parallel, because the main goal is to speed up this process as much as possible (the channel allows you to make at least 1k requests at the same time). The question arose as to how best to do this.
Can lightweight threads/Fibers help in this situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cthulhudx, 2015-11-13
@cthulhudx

The best choice would be to use the Netty framework. Here are the articles in which you can get acquainted with it:
High-performance NIO server on Netty
IoT cloud on Netty or 10k rec-sec per core

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question