limitium / grpc-flatbuffers

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle + flatbuffers + grpc + spring boot

Build

./gradlew build

Run

To run gRPC server

./gradlew :grpc-server:bootRun

To run a test-app client

./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

About

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


Languages

Language:Java 100.0%