Deployment

You can deploy an Akka gRPC application just like you would any other JVM-based project. For some general pointers on this topic, see the deployment section of the Akka documentation.

Remember that the cleartext HTTP/2 “h2c with prior knowledge” protocol is not compatible with HTTP/1.1, so if your infrastructure uses any proxies they must either understand this protocol or support generic TCP connections.

Serve gRPC over HTTPS

To deploy your gRPC service over a HTTPS connection you will have to use an HttpsConnectionContextHttpsConnectionContext as described in the Akka-HTTP documentation.

Example: Kubernetes

As an example, here is a complete project consisting of two applications (a gRPC service and an HTTP service that consumes the gRPC service) that can be deployed together in Kubernetes.

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.