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

Refactor async feign #1755

Merged
merged 8 commits into from
Sep 19, 2022
Merged

Refactor async feign #1755

merged 8 commits into from
Sep 19, 2022

Conversation

wplong11
Copy link
Collaborator

@wplong11 wplong11 commented Sep 18, 2022

Contains #1754 PR commits
If you want to see the final result, see PR #1757

TODO

  • Modify AsyncFeign.asyncBuilder to extend Feign.Builder or Modify Feign to support the features of AsyncFeign
    • It is intended to be used when customizing Feign.Builder in Spring Cloud OpenFeign.
    • Please feedback on Feign supporting the features of AsyncFeign. Are there any concerns regarding the library experience?
    • I think it's okay to work after merged, because CoroutineFeign is an experimental feature right now.

@wplong11 wplong11 marked this pull request as draft September 18, 2022 07:32
Copy link
Member

@velo velo left a comment

Choose a reason for hiding this comment

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

I will merge as is, cause I really liked this change.

There is a chance it will break binary for people out there, but, it's an experimental API.

I think I will bump feign version as well to make clear it's breaking something

@@ -44,10 +45,17 @@
* be done (for example, creating and submitting a task to an {@link ExecutorService}).
*/
@Experimental
public abstract class AsyncFeign<C> extends Feign {
Copy link
Member

Choose a reason for hiding this comment

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

Loved this.

I was hating myself for having asyncBuilder but couldn't take the time to fix it, amazing job, thanks

@velo velo marked this pull request as ready for review September 19, 2022 21:29
@velo velo merged commit 7d1cf7c into OpenFeign:master Sep 19, 2022
@wplong11 wplong11 mentioned this pull request Sep 20, 2022
1 task
@wplong11 wplong11 deleted the 2-refactor-async-feign branch October 9, 2022 17:49
@velo velo mentioned this pull request Dec 6, 2023
velo added a commit that referenced this pull request Oct 7, 2024
* Add MethodInfoResolver to customize MethodInfo creation logic

* Add methodInfoResolver setter to AsyncBuilder

* Refactor CoroutineFeign to use AsyncFeignBuilder instead of FeignBuilder

* Deprecate CoroutineFeign.coBuilder

* Change AsyncFeign to not inherit Feign

* Deprecate AsyncFeign.asyncBuilder

* Refactor AsyncBuilder to build Feign directly

Co-authored-by: Marvin Froeder <velo@users.noreply.github.com>
velo added a commit that referenced this pull request Oct 8, 2024
* Add MethodInfoResolver to customize MethodInfo creation logic

* Add methodInfoResolver setter to AsyncBuilder

* Refactor CoroutineFeign to use AsyncFeignBuilder instead of FeignBuilder

* Deprecate CoroutineFeign.coBuilder

* Change AsyncFeign to not inherit Feign

* Deprecate AsyncFeign.asyncBuilder

* Refactor AsyncBuilder to build Feign directly

Co-authored-by: Marvin Froeder <velo@users.noreply.github.com>
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.

2 participants