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
Performance issues with Feign? #1890
Comments
You create the You shouldn't re-create it over and over again. You can either use metrics to try to figure where the time is being spent OR run a flame chart see if anything suspicious arrive. Also, there is some code for testing feign performance on |
@petterasla are you willing to run flame charts on your project? That would help identify the issue |
Yes, it is created as a Spring Bean so we would hope it only gets created once per instance of the application.
I will forward your question to him |
Hi. TLDR; Summary: Since the problem was solved by using only okHttp3, no more effort was put in to find the exact issue. I will close the issue. |
Hi,
Has anyone experienced performance issues with Feign?
Our company is using Feign with most of our web services.
New requirements demand one of our services to handle at least 3000 transactions per second (TPS).
So for the past few weeks my team have been performance testing with different code config and infrastructure.
We stripped all logic without luck, but once we removed Feign and used pure okHttp3 HTTP clients with http/2 protocol, the performance skyrocketed.
We went from constantly starting to fail around 1500 TPS, independent of pods and resources, to managing 8000 TPS.
With Feign we also see a boost of Java threads when we get close the threshold of 1500 TPS.
Are we configuring Feign wrong? (see config example at the bottom)
Background info
Infrastructure
Code
Example Feign with okHttp3 client
The text was updated successfully, but these errors were encountered: