An open API service indexing awesome lists of open source software.

https://github.com/limitium/grpc-flatbuffers

Example of gRPC server and client with a flatbuffer protocol wrapped by spring boot and build via gradle
https://github.com/limitium/grpc-flatbuffers

flatbuffers gradle grpc spring-boot

Last synced: 2 months ago
JSON representation

Example of gRPC server and client with a flatbuffer protocol wrapped by spring boot and build via gradle

Awesome Lists containing this project

README

          

# Gradle + flatbuffers + grpc + spring boot

## Build
```shell
./gradlew build
```
## Run
To run gRPC server
```shell
./gradlew :grpc-server:bootRun
```
To run a test-app client
```shell
./gradlew :grpc-test-app:run
```
## Under hood
Bare minimal set of libraries, plugins and code to run gRPC server. Only official libraries and plugins are used.
### fb-lib
Module with library flavour holds `schema.fbs`, generates java sources and provides transitive dependencies for flatbuffers and grpc
### grpc-server
Module with spring boot app, basically spring controls grpc server lifecycle and provides properties
### grpc-client
Module with library flavour adds `stubs` over `fb-lib` and add UX to generated flatbuffers client
### grpc-test-app
Module with application flavour, onliner of `grpc-client` usage