anchor.diff:   }
   ----
   
  +
   * Configure gRPC server to register itself with Eureka.
  +
   
   [source,yaml]
   .bootstrap.yaml
  
positive.code:     application:
          name: my-service-name <1>
  ----
  <1> Eureka's `ServiceId` by default is the spring application name, provide it before the service register itself with Eureka.
  
  [source,yaml]
  .application.yaml
  
negative.code:         serviceUrl:
              defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/ <3>
  ----
  
  <1> Specify the port number the gRPC is listening on.
  <2> Register the eureka service port to be the same as `grpc.port` so client will know where to send the requests to.
  <3> Specify the  registry URL, so the service will register itself with. 
  
    d
   * Expose the gRPC service as part of Spring Boot Application.
  
  
  [source,java]
  .EurekaGrpcServiceApp.java
  ----
   @SpringBootApplication
   @EnableEurekaClient
   public class EurekaGrpcServiceApp {
  
       @GRpcService
       public static class GreeterService extends GreeterGrpc.GreeterImplBase {
           @Override
           public void sayHello(GreeterOuterClass.HelloRequest request, StreamObserver<GreeterOuterClass.HelloReply> responseObserver) {
  
           }
       }
  
       public static void main(String[] args) {
           SpringApplication.run(DemoApp.class,args);
       }
  
   }
  ----
  
  ===  gRPC Client Project
  
  