How-To: Configure Dapr to use gRPC

    Dapr implements both an HTTP and a gRPC API for local calls. gRPC is useful for low-latency, high performance scenarios and has language integration using the proto clients.

    You can find a list of auto-generated clients here.

    In addition to calling Dapr via gRPC, Dapr can communicate with an application via gRPC. To do that, the app needs to host a gRPC server and implements the

    When running in self hosted mode, use the flag to tell Dapr to use gRPC to talk to the app:

    Kubernetes

    On Kubernetes, set the following annotations in your deployment YAML:

    1. apiVersion: apps/v1
    2. kind: Deployment
    3. metadata:
    4. name: myapp
    5. labels:
    6. spec:
    7. replicas: 1
    8. selector:
    9. matchLabels:
    10. app: myapp
    11. metadata:
    12. app: myapp
    13. annotations:
    14. dapr.io/enabled: "true"
    15. dapr.io/app-id: "myapp"
    16. dapr.io/app-protocol: "grpc"
    17. ...