Skip to content

Google RPC (gRPC) Server with protobuf over HTTP/2

Notifications You must be signed in to change notification settings

alokkusingh/gRPCServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Server

Generate Stub

Generate Stub from protobuf using protoc-jar-maven-plugin Maven plugin

mvn clean generate-sources

Access gRPC API

You may use BloomGRPC toll to invoke the gRPC APPIs...

brew install --cask bloomrpc

Give App permission on Mac

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

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;
        }

    }

About

Google RPC (gRPC) Server with protobuf over HTTP/2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages