Integrating YARP with Consul #2343
-
|
Hi, we are using YARP as a gateway API for our architecture, we need to integrate is with Consul, is there any way to do that ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @oshabani, this should be possible today using the (preview) The README files contain some example code to get you started:
I hope that helps. Please let me know if I can provide more information. |
Beta Was this translation helpful? Give feedback.
Hi @oshabani, this should be possible today using the (preview)
Microsoft.Extensions.ServiceDiscovery.Dnsand theMicrosoft.Extensions.ServiceDiscovery.Yarplibrary The first library implements service discovery via DNS SRV, which Consul supports, and the second integrates service discovery into YARP using a destination resolver. I have not tried integrating with Consul yet, so your experience would be welcome.The README files contain some example code to get you started:
I hope that helps. Please let me know …