Awesome, thanks!

On Fri, 13 Nov 2020 at 8:46 PM Mya Pitzeruse <[email protected]> wrote:

> I think this depends on what you mean by "unsolicited"...
>
> You could do this with a long-lived server or bi-directional streaming
> API. Clients can initiate the call and wait for messages. Then, servers
> will can send messages to the client when they need to. I'm not sure what
> language you're using, but there are many systems that leverage a "watch"
> pattern so finding a language specific example _shouldn't_ be too hard.
> Here's a golang sample where I implemented paxos using gRPC. Learners in
> the protocol watch acceptors over a server streaming API.
>
> - proto definition:
> https://github.com/mjpitz/paxos/blob/main/api/paxos.proto#L37
> - server:
> https://github.com/mjpitz/paxos/blob/main/internal/server/acceptor.go#L100-L135
>
> On Wed, Nov 11, 2020 at 8:57 PM Jeivardan <[email protected]>
> wrote:
>
>> Hi All,
>>
>> I have a use case where server send unsolicited events to clients to
>> client’s. Is it possible with grpc, if so please tell how to do.
>>
>> Thanks,
>> Jeivardan
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/grpc-io/CADh7ZcQ_YehfpocE4w%3DSTJDU7u%2BUgdu7KN-DOH-OBfUO0EA60w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/grpc-io/CADh7ZcQ_YehfpocE4w%3DSTJDU7u%2BUgdu7KN-DOH-OBfUO0EA60w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> *Mya Pitzeruse*
> Gender Pronouns: She, Her, Hers
> [email protected]
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CADh7ZcQ-WRRMH%3D10pPca0d-BYva0k_f2%3DRoSY%3Dpg%2B4K%2BVbH-hg%40mail.gmail.com.

Reply via email to