vietnam-devs / coolstore-microservices

A full-stack .NET microservices build on Dapr and Tye
https://vietnam-devs.github.io/coolstore-microservices
MIT License
2.48k stars 579 forks source link

Yarp Integration with Dapr #72

Closed goldytech closed 1 year ago

goldytech commented 2 years ago

I want to integrate YARP with DAPR. My use case is that when a user hits the yarp URL, the downstream of it must invoke the DAPR sidecar URL for service invocation Eg.

http(s)://<Yarp service >/api/< service name >/XXXXX (Upstream)
 To 
http://<Dapr-sidecar>/v1.0/invoke/< service name >/method/XXXXX (Downstream)

I'm not sure how I configure this as YARP routes.

Please help.

thangchung commented 1 year ago

You can follow this issue in the YARP repo => https://github.com/microsoft/reverse-proxy/issues/967 Feel free to open up if you have more concerns. Thank you