Thanks a lot, thinks that what I need, so sorry I haven't get time to 
prepare the code snippet.

On Friday, August 11, 2017 at 3:16:59 AM UTC+8, Eric Anderson wrote:
>
> I think you can do this with a server interceptor. Simply delay calling 
> next until the configuration is available.
>
> On Tue, Aug 1, 2017 at 2:22 AM, Carfield Yim <carf...@gmail.com 
> <javascript:>> wrote:
>
>> Hi all
>>
>> I've a server process develop using grpc, I would like to have a cool DR 
>> which receive request but don't stream response until that config option 
>> set to true
>>
>> The implementation option I know is that in the service class, I handle 
>> that option and then don't run the StreamObserver.onNext(msg) until that 
>> config option set to true. However, if I doing that, I need to have that 
>> block of code for all my service classes. 
>>
>> If there any better implementation approach?
>>
>> Thanks.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "grpc.io" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to grpc-io+u...@googlegroups.com <javascript:>.
>> To post to this group, send email to grp...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/grpc-io.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/b6be3cdb-8618-415b-8939-7ce2c90b4560%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/b6be3cdb-8618-415b-8939-7ce2c90b4560%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/1fd3bdf2-e049-4f28-8259-6fc7331f3ac2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to