All Projects → lavcraft → grpc-spring-boot-starter

lavcraft / grpc-spring-boot-starter

Licence: MIT License
No description or website provided.

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects
shell
77523 projects

Projects that are alternatives of or similar to grpc-spring-boot-starter

Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 2,190 (+13587.5%)
Mutual labels:  grpc, spring-boot-starter
Grpc Spring Boot Starter
Spring Boot starter module for gRPC framework.
Stars: ✭ 1,829 (+11331.25%)
Mutual labels:  grpc, spring-boot-starter
agentgo
Hi! Agentgo is a tool for making remote command executions from server to client with golang, protocol buffers (protobuf) and grpc.
Stars: ✭ 15 (-6.25%)
Mutual labels:  grpc
waypoint-plugin-examples
An example repository that demonstrates how to create and run an external Waypoint plugin
Stars: ✭ 16 (+0%)
Mutual labels:  grpc
tdm
Telemetry Data Mapper to ease data discovery, correlation, and usage with YANG, MIBs, etc.
Stars: ✭ 33 (+106.25%)
Mutual labels:  grpc
grpc-chat
Simple Chat Server/Client implemented with gRPC
Stars: ✭ 107 (+568.75%)
Mutual labels:  grpc
dashboard
Project for managing ML model and deploying ML module. It can deploy the Rekcurd service to Kubernetes cluster.
Stars: ✭ 27 (+68.75%)
Mutual labels:  grpc
zepto
⚡️Lightweight web framework written in go
Stars: ✭ 115 (+618.75%)
Mutual labels:  grpc
jmeter-grpc-plugin
A JMeter plugin supports load test gRPC
Stars: ✭ 36 (+125%)
Mutual labels:  grpc
iris
Distributed streaming key-value storage
Stars: ✭ 55 (+243.75%)
Mutual labels:  grpc
vscode-csharp-snippets
Extension of C# Snippets for Visual Studio Code
Stars: ✭ 22 (+37.5%)
Mutual labels:  grpc
spear
Spear轻量级微服务框架,高扩展性,目前已支持TCP、HTTP、WebSocket以及GRPC协议,采用Consul/Nacos作为服务注册与发现组件,TCP协议采用DotNetty底层实现,HTTP协议采用ASP.NET CORE MVC实现。
Stars: ✭ 49 (+206.25%)
Mutual labels:  grpc
asio-grpc
Asynchronous gRPC with Asio/unified executors
Stars: ✭ 100 (+525%)
Mutual labels:  grpc
go-grpc-bidirectional-streaming-example
gRPC bidirectional streaming example written in golang
Stars: ✭ 83 (+418.75%)
Mutual labels:  grpc
kruiser
A proxy that transparently exposes gRPC Kubernetes services cluster-externally
Stars: ✭ 14 (-12.5%)
Mutual labels:  grpc
exdgraph
gRPC based Elixir Dgraph client. Under development.
Stars: ✭ 112 (+600%)
Mutual labels:  grpc
bazel-cache
Minimal cloud oriented Bazel gRPC cache
Stars: ✭ 33 (+106.25%)
Mutual labels:  grpc
grpc-tutorial
gRPC tutorial for Japanese readers
Stars: ✭ 579 (+3518.75%)
Mutual labels:  grpc
ocaml-grpc-envoy
Using OCaml + gRPC via Envoy
Stars: ✭ 41 (+156.25%)
Mutual labels:  grpc
Book-Finder
Book Finder application is a client-server application (gRPC) for educational purposes.
Stars: ✭ 20 (+25%)
Mutual labels:  grpc

GRpc Spring Boot Starter

Circle CI codecov.io Codacy Badge Join the chat at https://gitter.im/lavcraft/grpc-spring-boot-starter Download

Usage

  • Add dependencies (see examples)
ru.alfalab.grpc.spring:starter
io.grpc:grpc-stub
io.grpc:grpc-protobuf
io.grpc:grpc-netty

example:

repositories {
  jcenter()
}

apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'org.springframework.boot'

dependencies {
  compile "ru.alfalab.grpc.spring:starter:$starterVersion"
  compile "io.grpc:grpc-stub:$grpcVersion"
  compile "io.grpc:grpc-protobuf:$grpcVersion"
  compile "io.grpc:grpc-netty:$grpcVersion"  
}
// see examples/example-isolated/build.gradle for details  
  • Add @EnableGRpcServer anotation to your configuration for enable grpc server
  • Customize configuration - application.yml/application.property. Example:
grpc:
 enabled: true
 servers:
   -
     address: 127.0.0.1
     port: 6565
   -
     address: 127.0.0.1
     port: 0

Use port: 0 for auto assign random port

or

    grpc.enabled: true
    grpc.servers[0].address=127.0.0.1
    grpc.servers[0].port=6565
    grpc.servers[0].address=127.0.0.1
    grpc.servers[0].port=0    

Default values

  • port 6565
  • host/ip localhost/127.0.0.1

Advanced features

Discover random port

If you want to run on random port (grpc.servers[0].port=0), you will need inject resulted port. Use @GRPCLocalPort please for solve this

@GRPCLocalPort
int port

Tested on

name version
io.grpc:grpc-stub 1.7.0
io.grpc:grpc-protobuf 1.7.0
io.grpc:grpc-netty 1.7.0
com.google.protobufprotoc 3.2.0
Spring Boot 1.5.8.RELEASE
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].