aseovic / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
0 stars 2 forks source link

Support discovery and configuration of microprofile gRPC interceptors #67

Open thegridman opened 5 years ago

thegridman commented 5 years ago

We need to be able to use gRPC interceptors in the CDI micro profile environment. The interceptors should be discoverable and applied to services or methods.

The current thinking is that we can use annotation binding for this in the same way that CDI interceptors work. A gRPC service class can be annotated with custom "interceptor binding" annotations. A gRPC interceptor is also annotated with the same annotation. When the server is bootstrapped and services are discovered the interceptors for the specific annotations should be discovered and applied to the service/method configuration.

thegridman commented 5 years ago

On hold until the gRPC client APIs are in the MP branch so that the work done for server side interceptor discovery can be repeated along with examples and docs.