How to choose the right strategy for building a Consul service? Consul DevOps or Ocelot C# Dev? #2148
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hello Tang!
Requests are routed to downstream services, not to Consul. We will not be adding any JSON parameters to the Have you read Consul Service Builder docs?
Ultimately, the decision comes down to selecting your role: Consul DevOps or Ocelot C# Developer? |
Beta Was this translation helpful? Give feedback.
-
So, error is You need to consider the following 2 possible solutions:
|
Beta Was this translation helpful? Give feedback.
-
It seems you haven't read the docs, dude... This is definitely the fix, as it is already explained in the docs!
I'm not sure which "configuration parameter" you're referring to. If you're suggesting the config parameter in Finally, I don't understand why you reported this issue. We are not going to provide any JSON parameters in the global |
Beta Was this translation helpful? Give feedback.
-
Thank you for your explanation. I did not pay attention to this part of the document. I now know how to fix this problem as a best practice! |
Beta Was this translation helpful? Give feedback.
Hello Tang!
Requests are routed to downstream services, not to Consul. We will not be adding any JSON parameters to the
GlobalConfiguration.ServiceDiscoveryProvider
or at the route level. One should act as a DevOps engineer by defining the correct node names, or as a C# developer by overriding the default service builder.Have you read Consul Service Builder docs?
The documents outline the following best practice: