Fwd: [nginx] The gRPC proxy module.

Maxim Konovalov maxim at nginx.com
Sun Mar 18 10:03:10 UTC 2018


for those who don't follow nginx-devel at .

We also published a blog post on this topic


-------- Forwarded Message --------
Subject: [nginx] The gRPC proxy module.
Date: Sat, 17 Mar 2018 20:08:27 +0000
From: Maxim Dounin <mdounin at mdounin.ru>
Reply-To: nginx-devel at nginx.org
To: nginx-devel at nginx.org

details:   http://hg.nginx.org/nginx/rev/2713b2dbf5bb
branches:  changeset: 7233:2713b2dbf5bb
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Sat Mar 17 23:04:24 2018 +0300
The gRPC proxy module.

The module allows passing requests to upstream gRPC servers. The
module is built by default as long as HTTP/2 support is compiled in.
Example configuration:


Alternatively, the "grpc://" scheme can be used:

    grpc_pass grpc://;

Keepalive support is available via the upstream keepalive module.
Note that keepalive connections won't currently work with grpc-go as
it fails to handle SETTINGS_HEADER_TABLE_SIZE.

To use with SSL:

    grpc_pass grpcs://;

SSL connections use ALPN "h2" when available.  At least grpc-go
works fine without ALPN, so if ALPN is not available we just
establish a connection without it.

Tested with grpc-c++ and grpc-go.

Maxim Konovalov

More information about the nginx mailing list