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
- Host: GitHub
- URL: https://github.com/limitium/grpc-flatbuffers
- Owner: limitium
- Created: 2022-08-11T20:56:27.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T20:59:09.000Z (almost 4 years ago)
- Last Synced: 2025-07-10T12:09:55.100Z (11 months ago)
- Topics: flatbuffers, gradle, grpc, spring-boot
- Language: Java
- Homepage:
- Size: 1010 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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