Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async and non-blocking HTTP backend #220

Merged
merged 5 commits into from
Jul 6, 2018
Merged

Conversation

renner
Copy link
Member

@renner renner commented Nov 17, 2017

This patch is about replacing the existing HTTP client backend (that can run on either the Apache HTTP client or the JDK classes) with one that works in a non-blocking fashion, in this case the Apache HttpAsyncClient. The outcome of this is that we can actually benefit from the concurrency features of Java 8, especially CompletableFuture. All the main library methods will then return a CompletionStage containing the result instead of just the result. This is why we are targeting the version 1.0.0 milestone with this patch.

@renner renner added this to the Version 1.0.0 milestone Nov 17, 2017
@renner renner self-assigned this Nov 17, 2017
@renner renner requested a review from lucidd November 17, 2017 15:33
@renner renner changed the base branch from master-api-cleanup to master June 28, 2018 06:02
@renner renner changed the title [WIP] Async and non-blocking HTTP backend Async and non-blocking HTTP backend Jun 28, 2018
@lucidd lucidd force-pushed the master-async-http-client branch 2 times, most recently from 41e7ab7 to 9419ebc Compare June 28, 2018 15:30
this.executor = executor;

// TODO: Replace connectionFactory with this
this.asyncConnectionFactory = new HttpAsyncClientConnectionFactory(config);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the TODO comment here as the connectionFactory is gone now.

@lucidd lucidd force-pushed the master-async-http-client branch 2 times, most recently from 5b585d9 to 6717d32 Compare July 6, 2018 09:21
@renner renner merged commit 7ad1188 into master Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants