title: difference between eureka ID and service ID in spring cloud app?
body: <p>I am reading through the <a href="http://cloud.spring.io/spring-cloud-netflix/spring-cloud-netflix.html" rel="nofollow">documentation</a> on enabling <code>ZuulProxy</code> for spring cloud applications.</p>
  
  <p>It starts as the following:</p>
  
  <p><code>By convention, a service with the Eureka ID "users", will receive requests from the proxy located at /users</code></p>
  
  <p>Then later down the documentation, it goes as following</p>
  
  <pre><code>To get more fine-grained control over a route you can specify the path and the serviceId independently:
  
  application.yml
   zuul:
    routes:
      users:
        path: /myusers/**
        serviceId: users_service
  This means that http calls to "/myusers" get forwarded to the "users_service" service. The route has to have a "path" which can be specified as an ant-style pattern, so "/myusers/*" only matches one level, but "/myusers/**" matches hierarchically.
  </code></pre>
  
  <p>here serviceID is referred. I am confused now? what is <code>users</code> and <code>users_service</code> in the above <code>application.yml</code>.</p>
  
  <p>As far my understanding goes, every microservice application registers with Eureka provides a name as following in <code>bootstrap.yml</code>: For example,</p>
  
  <pre><code>spring:
    application:
      name: user
  </code></pre>
  
  <p>my understanding is that <code>user</code> is now Eureka ID as well as service ID. so what does <code>users</code> and <code>users_service</code> in the above mean?</p>