Share data between interceptor and service gRPC

Let’s imagine that we need to pass data between the interceptor and the service (or we need to sharedata between the interceptor and the service, or we need to exchange data between the interceptor and the service). We have a service: We have the code for starting the gRPC server: In your Interceptor class, in […]

READ MORE

Get client IP address from request gRPC

Let’s imagine that we need to get the client’s ip address from the request.  We have a service:  And the code for starting the gRPC server:  Let’s create a new class:  And register a new interceptor in the gRPC server launch code:  Done. If you need to pass the ip address from the interceptor to the […]

READ MORE