-
Notifications
You must be signed in to change notification settings - Fork 215
An OpenFeign Client for Dapr Invokes #1294
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
base: master
Are you sure you want to change the base?
Conversation
A OpenFeign Client and it's AutoConfiguration using Dapr Invoke APIs. Splited into two librarys, dapr-openfeign-client is the pure client of OpenFeign, and dapr-spring-openfeign is the plugin of Spring Cloud OpenFeign. Currently only HTTP Invoke Method and Invoke Binding supported, and Invoke Binding is not always recommend to use this client, depends on what binding component is. Signed-off-by: lony2003 <[email protected]>
A OpenFeign Client and it's AutoConfiguration using Dapr Invoke APIs. Splited into two librarys, dapr-openfeign-client is the pure client of OpenFeign, and dapr-spring-openfeign is the plugin of Spring Cloud OpenFeign. Currently only HTTP Invoke Method and Invoke Binding supported, and Invoke Binding is not always recommend to use this client, depends on what binding component is. Signed-off-by: lony2003 <[email protected]>
A OpenFeign Client and it's AutoConfiguration using Dapr Invoke APIs. Splited into two librarys, dapr-openfeign-client is the pure client of OpenFeign, and dapr-spring-openfeign is the plugin of Spring Cloud OpenFeign. Currently only HTTP Invoke Method and Invoke Binding supported, and Invoke Binding is not always recommend to use this client, depends on what binding component is. Signed-off-by: lony2003 <[email protected]>
this example can redirect order request to producer-app. It needs producer-app to run properly. Signed-off-by: lony2003 <[email protected]>
this test tests the PostgreSQL binding of dapr. Signed-off-by: lony2003 <[email protected]>
Signed-off-by: lony2003 <[email protected]>
I haven't reviewed this yet @lony2003 , but I am more convinced that we need this .. @artur-ciocanu @mcruzdev can you help me to check this PR ? |
...n/src/main/java/io/dapr/spring/openfeign/autoconfigure/DaprFeignClientAutoConfiguration.java
Outdated
Show resolved
Hide resolved
Fix the example doc to make openfeign app works in mm.py Signed-off-by: lony2003 <[email protected]>
@lony2003 I've just reviewed this PR and it is looking awesome.. |
…riginal Targeter beans instead of override them. Signed-off-by: lony2003 <[email protected]>
@salaboy I have changed the |
...gn-app/src/main/java/io/dapr/springboot/examples/openfeign/ProducerClientRestController.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1294 +/- ##
============================================
- Coverage 76.91% 75.10% -1.82%
- Complexity 1592 1656 +64
============================================
Files 145 201 +56
Lines 4843 5314 +471
Branches 562 575 +13
============================================
+ Hits 3725 3991 +266
- Misses 821 997 +176
- Partials 297 326 +29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: lony2003 <[email protected]>
…ingMessagingIT works Signed-off-by: lony2003 <[email protected]>
…oot 3.3.x Signed-off-by: lony2003 <[email protected]>
…gIT works Signed-off-by: lony2003 <[email protected]>
@cicoyle I have checked all files and add headers for them, and I have solved the problem that makes IT failed. Please re-trigger the CI. |
Hey @lony2003 - thanks, before I can retrigger CI it says there are conflicts needing to be resolved. Mind resolving them locally and pushing? Then we'll be able to proceed 🙏🏻 |
Signed-off-by: lony2003 <[email protected]>
8580167
to
a330ef2
Compare
…R_RUNTIME_IMAGE_TAG Signed-off-by: lony2003 <[email protected]>
8befe0e
to
6d1e70a
Compare
3eaa83e
to
c381e44
Compare
… client bean autowired Job SDK ITs have a daprPreviewClient bean defined, as SpringBoot bean search will first get beans that impl the interface and get all beans that matches the bean's class, when openfeign autowire DaprClient, there is a conflict between daprClient and daprPreviewClient. Change the AutoConfiguration behavior to make a more strict rule for making AutoConfiguration run Signed-off-by: lony2003 <[email protected]>
00fae6b
to
bc6d98c
Compare
… client bean autowired Job SDK ITs have a daprPreviewClient bean defined, as SpringBoot bean search will first get beans that impl the interface and get all beans that matches the bean's class, when openfeign autowire DaprClient, there is a conflict between daprClient and daprPreviewClient. Change the AutoConfiguration behavior to make a more strict rule for making AutoConfiguration run Signed-off-by: lony2003 <[email protected]>
change APP_PORT to 8082 Signed-off-by: lony2003 <[email protected]>
@cicoyle conflict solved. |
Description
A OpenFeign Client and it's AutoConfiguration using Dapr Invoke APIs.
Splited into two librarys, dapr-openfeign-client is the pure client of OpenFeign, and dapr-spring-openfeign is the plugin of Spring Cloud OpenFeign.
Currently only HTTP Invoke Method and Invoke Binding supported, and Invoke Binding is not always recommend to use this client, depends on what binding component is.
Issue reference
this PR will close: #1181
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: