-
Notifications
You must be signed in to change notification settings - Fork 207
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
Replace okhttp with azure core http #763
Comments
/assign |
@tanvigour why are we replacing one dependency with another? |
Please do not use an Azure specific HTTP library. Instead, pick a known Java standard. |
The Azure dependency is the same as the OKHTTP but in a different namespace to avoid conflict. There is a well known issue of conflicting OKHTTP version with the app when importing the Dapr Java SDK. It is a major pain point to get started. People have to pick one version to resolve conflict and hope they are compatible. This will stop this conflict. We also had plans to remove OKHTTP completely and use Java's native HTTP client but that requires Java 11 as minimum support. Right now, we need to keep Java 8 support because of Spring Cloud requirements. /cc @skyao |
To fix the version compatibility issue while using okhttp as mentioned in this : #687 |
@artursouza What is the Spring Cloud dependency that you mention? |
To integrate dapr with spring cloud, since current main version of spring is supporting jdk 1.8 like:
And for next main version of spring/springboot is required jdk17. I think most spring users will stay in current spring for a long time because jdk17 and wait for spring new version to be stable. So, upgrading jdk version of dapr java sdk to jdk11 will bring a risk that if the users are using jdk1.8, then we will loss these users ---- I don't think the user will update to jdk11 just because of dapr. The best strategy of dapr java sdk is that we can support all of them and let the developer choose one of them:
|
@artursouza and I were talking about this earlier and I opened a PR to deprecate the HTTP-transport bits; we could get rid of some code it seems that it could make transitioning easier. Additionally, we could consider splitting off the HTTP client into its own package/artifact that could be used to keep HTTP support until a project has made the transition away from HTTP (it would also be easier to guarantee you have transitioned your project because removing the |
Replace this to fix the dependency issue with okhttp3 #687
The text was updated successfully, but these errors were encountered: