Skip to content

How to choose the right strategy for building a Consul service? Consul DevOps or Ocelot C# Dev? #2148

Pinned Answered by raman-m
RainySeason673 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Tang!

Expected Behavior / New Feature

hope add some configuration parameter of ocelot.consul : use for choose consul service'name or service's address when forward request to consul

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:

Some DevOps engineers choose to ignore node names, opting instead for abstract identifiers rather th…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Service Discovery Ocelot feature: Service Discovery Configuration Ocelot feature: Configuration Consul Service discovery by Consul
2 participants
Converted from issue

This discussion was converted from issue #2147 on September 04, 2024 12:23.