8000 GitHub - harshbits/grpc-spring-boot-services: This repository contains gRPC spring boot auto configuration project and implementation of services using that.
[go: up one dir, main page]

Skip to content

This repository contains gRPC spring boot auto configuration project and implementation of services using that.

Notifications You must be signed in to change notification settings

harshbits/grpc-spring-boot-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC- Spring Boot - A Spring Boot implementation

gRPC Homepage: grpc.io
Spring Boot Homepage: spring.io

Codacy Badge Build Status Join the chat at https://gitter.im/grpc/grpc

Note: Travis build failure reason: Not support for Java 9 on Travis

Version Details:

Current Version: 2.0.0-SNAPSHOT

  • What's new?
    • Support for Consul
    • Java 9 Support
    • io.grpc (grpc-java) version: 1.7.0

Previous Version: 1.0.0.RELEASE

  • Code is in branch 1.0.0.RELEASE

Future Planning: 2.0.1-SNAPSHOT

Reference Links:

Protobuf

HTTP2

Usage:

Clone the repository, and add to your pom.xml:

<!-- Spring gRPC boot -->
<dependency>
  <groupId>com.grpc.service</groupId>
  <artifactId>grpc-services-boot-starter</artifactId>
  <version>2.0.0-SNAPSHOT</version>
</dependency>

below property in application.yml

grpc:
  port: <port>

Note: specifying above property (i.e. port) is optional. Default port is 6565

Demo server project

Demo client project

How to Build

  • Refer this github grpc-java page
  • Right click on project and run maven update command from IDE (STS/Eclipse). It will generate protobuf resources.

How to Run

  • Import demo Server, Client and Eureka projects.
  • Run Eureka Server.
  • Run Demo Server project and wait for Eureka to register it.
  • Once, Server project will get registered, start Demo Client project.

Sample Request

Sample Response

{
  "message": "Hello Harsh"
}

Prerequisites

In order to start work with project, make sure you have configured IDE/System with prerequisites steps.

Java Version

  • Java 9 (JDK 9) for version 2.0.0-SNAPSHOT
  • Java SE Development Kit 8 (JDK 8) for version 1.0.0.RELEASE

Spring Boot Version

  • Spring Boot Version Must be greater than 2
  • Currently Used version: 2.0.0.BUILD-SNAPSHOT
  • Refer Spring Boot version 2.0.0.BUILD-SNAPSHOT Documentation

Lombok

  • Install Lombok for your IDE (i.e. STS or Eclipse)
  • Version to install: 1.16.16
  • Installation Guide: Please refer this link

.proto file editor

Reference Projects/Repositories:

License

Apache 2.0

About

This repository contains gRPC spring boot auto configuration project and implementation of services using that.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0