Questions tagged [asynchttpclient]

Asynchronous HTTP client library for Java

See the GitHub repo for more information. In essence:

AsyncHttpClient allows Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. Feature-packed, wicked fast, and actively maintained.

323 questions
1
vote
0 answers

async-http-client-2.12.3 library is vulnerable

I am using async-http-client-2.12.3 library but it is vulnerable and on maven repo site does not have any new release from last release. so, any update on "async-http-client" library, when will it be release new version? when will it be release new…
1
vote
2 answers

How to calculate total response time of an HTTP request using AsyncHttpClient library

I am looking into using AsyncHttpClient (AHC) to invoke multiple HTTP requests in parallel and calculate total response time as well as TCP connection time, DNS resolution time, time to first byte etc. of each of these async…
Mary123
  • 11
  • 4
1
vote
0 answers

Spring Boot With Async Dynamo Client. Is it advantageous?

I am new to Asynchronous programming. I am using Spring boot for my application and using DynamoDB as my DB. All my calls to DB are synchronous and blocking and hence leading to performance issues. I know that spring boot spawns multiple threads to…
1
vote
0 answers

How to loop AsyncHttpClient B inside AsyncHttpClient A with data list of url from AsyncHttpClient in java Android Studio?

I want to add data to list of user from detailClient(inside client) for every url from client. onCreate in MainActivity: progressBar = findViewById(R.id.bar_progress); etSearch = findViewById(R.id.et_search); ibSearch =…
1
vote
1 answer

Spring Cloud Resilience4j Circuitbreaker not calling fallback

I am trying to use the spring cloud resilience4j library to implement a circuit breaker for when an vendor api returns 500 errors or when it times out, the api is called using AsyncHttpClient. The problem seems to be that the circuit breaker is…
1
vote
1 answer

How to write responses of multiple asynchronous get requests to a single file in asynchronous httpclient java 11?

I can download a single media file using httpclient in java 11 like this public class Httptest { private static HttpClient client = HttpClient.newBuilder().build(); public static void main(String[] args) throws Exception { …
vicki
  • 402
  • 2
  • 8
1
vote
0 answers

Choose between UnpooledByteBufAllocator and Pooled in netty when merge many ByteBufs

I use AsyncHttpClient library for files download. For example, I need to download 500 files from one host, each size about 10 MB, and write these files to disk. For this example, I will provide the below code: Declare AsyncHttpClient. I use…
Peter Kozlovsky
  • 633
  • 2
  • 10
  • 28
1
vote
0 answers

Flink Async IO operator tuning / micro-benchmarks

As Flink Async IO operator is designed for external API or DB calls, are there any specific guidelines / tips for scaling up this operator? Particularly for use-cases where incoming events are being ingested at a very high-speed and the Async IO…
parti
  • 11
  • 1
1
vote
1 answer

How to fill AutoCompleteTextView in Android with an API call?

I want to try to get a list of food items from an API and update the AutoCompleteTextView based on this. I've tried following the answer here but to no avail: https://stackoverflow.com/a/36799955/7429535 This is my code so far: //Outside…
Daniel Lawton
  • 416
  • 3
  • 9
  • 30
1
vote
1 answer

Using ForkJoinPool together with AsyncHttpClient - does it make sense?

My questions is somewhat related to this question about ForkJoinPool and IO-oriented operations, but it is slightly more general (and the question I linked to didn't receive a definite answer). In short - if I want to send many HTTP requests in…
1
vote
1 answer

How to make a Java HTTP async request?

By executing the code below, I was expecting to have "passed" printed right away on console and then, 3 seconds later, postman's server delayed response ({"delay":"3"}), but instead I'm having to wait 3 seconds to see "passed" printed, after the…
1
vote
0 answers

Custom SSL Certificates with AsyncHttpClient

A java application needs to make some requests to a server using a custom certificate. The OS contains another certificate for the given server, and it makes no difference if I add the custom cert file or not. The flow is similar to…
vasile_t
  • 372
  • 2
  • 12
1
vote
1 answer

How to build URL with AsyncHttpClient?

AsyncHttpClient provides only a simple example where the target URL already prebuilt and represented as a string literal: Future whenResponse = asyncHttpClient.prepareGet("http://www.example.com/").execute(); But what about more complex…
Smancy
  • 11
  • 2
1
vote
1 answer

AsyncHttpClient creates how much threads?

I use async http client in my code to asynchronously handle GET responses I can run simultaneously 100 requests in the same time. I use just on instance of httpClient in container @Bean(destroyMethod = "close") open fun httpClient() =…
1
vote
0 answers

Getting java.io.IOException: Connection reset by peer

When I try to send messages to twitter server I'm getting below error after some idle time. java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at…
Sunil Tallada
  • 11
  • 1
  • 2