Relative Content

Tag Archive for grpcreal-time-updates

Get real-time updates using gRPC server stream

I have two services that communicate with each other using gRPC. In a situation, service1 asks service2 for a camera list and this is by now a unary request. But the list can be changed during the time, even every month or many times in a single hour or never at all in a long period.
So to get these updates I think I have three simple solutions using the gRPC protocol.
1- Make the main procedure server stream instead of unary.
2- Service1 gives service2 another unary procedure to be called on changes.
3- Service1 calls service2 procedure (the origin procedure) periodically.