https://github.com/alokkusingh/grpcserver
Google RPC (gRPC) Server with protobuf over HTTP/2
https://github.com/alokkusingh/grpcserver
grpc grpc-java grpc-server http2 java protobuf
Last synced: 11 months ago
JSON representation
Google RPC (gRPC) Server with protobuf over HTTP/2
- Host: GitHub
- URL: https://github.com/alokkusingh/grpcserver
- Owner: alokkusingh
- Created: 2019-12-07T09:46:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-19T10:58:36.000Z (over 1 year ago)
- Last Synced: 2025-04-23T12:19:22.989Z (11 months ago)
- Topics: grpc, grpc-java, grpc-server, http2, java, protobuf
- Language: Java
- Homepage:
- Size: 122 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## gRPC Server
## Generate Stub
Generate Stub from protobuf using `protoc-jar-maven-plugin` Maven plugin
```shell
mvn clean generate-sources
```
## Access gRPC API
You may use BloomGRPC toll to invoke the gRPC APPIs...
```shell
brew install --cask bloomrpc
```
Give App permission on Mac
```shell
sudo xattr -rd com.apple.quarantine /Applications/BloomRPC.app
```
## Putting behind Nginx
### Compatible version
NGINX Open Source 1.13.10 or higher
### Required Module
--with-http_v2_module
```shell
nginx -V
```
### Nginx Config
````
server {
listen 8088 http2;
access_log /Users/aloksingh/logs/nginx-access.log main;
error_log /Users/aloksingh/logs/nginx-error.log warn;
location / {
grpc_pass grpc://localhost:9090;
}
}
````