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

How to use AsyncCient for non blocking requests? #2374

Open
gfmota opened this issue Apr 5, 2024 · 3 comments
Open

How to use AsyncCient for non blocking requests? #2374

gfmota opened this issue Apr 5, 2024 · 3 comments

Comments

@gfmota
Copy link

gfmota commented Apr 5, 2024

I have a code where I have multiple @FeignClients and now we are having performance problems that could be solved by parallel requests. I saw that since 11.7 the AsyncClient allows to make non blocking requests, but I haven't found any documentation or usage example out on the internet. How exactly would you recommend to migrate FeignClient to AsyncClient? Do I need to use any other library to make it possible?

@gromspys
Copy link
Contributor

gromspys commented Apr 5, 2024

You can find documentation here: https://github.com/OpenFeign/feign?tab=readme-ov-file#async-execution-via-completablefuture
Also there is a library for reactive code: https://github.com/PlaytikaOSS/feign-reactive

@predatoralpha
Copy link

Hello! I can see @experimental annotation for interface AsyncClient. Is AsyncFeign only for fan or it used in productions servers?

@velo
Copy link
Member

velo commented Jun 1, 2024

Unstable API signature

* Indicates that a public API (public class, method or field) is subject to incompatible changes,

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

No branches or pull requests

4 participants