Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push to web clients using WS or SSE ? #131

Closed
joeblew99 opened this issue Apr 11, 2016 · 4 comments
Closed

push to web clients using WS or SSE ? #131

joeblew99 opened this issue Apr 11, 2016 · 4 comments

Comments

@joeblew99
Copy link

Does this generate any push functionality ? For example Websockets, etc etc

Does it make sense that a bit directions system like GRPC is begging to be proxied via web sockets ?

I think that SSE would be easier, having read a bit about it.

@joeblew99 joeblew99 changed the title push to web client using ? push to web clients using WS or SSE ? Apr 11, 2016
@joeblew99
Copy link
Author

https://www.youtube.com/watch?v=qHrS0lqeZeo&nohtml5=False

looks like google have implemented something kind of similar to this in golang, but also they do not support streams. they added service discovery and some nice tooling..

@yugui
Copy link
Member

yugui commented Apr 12, 2016

Yeah.
Currently grpc-gateway does not support push notification very well. I don't have a plan to support it because it looks to be too much for typical use cases.

@joeblew99
Copy link
Author

Might be worth checking out luci-go repo.
It's by Google appengine team.
They are doing similar stuff to this repo in regards to grpc.
It's not easy to find - it's a huge repo.

https://github.com/luci/luci-go/

One ref to help:
https://github.com/luci/luci-go/blob/master/client/cmd/rpc/call.go

They are also not supporting streaming back up to a browser using WS or SSE as far as I can tell.

@yugui
Copy link
Member

yugui commented Apr 13, 2016

Thank you for the pointers.

The purpose of pRPC and the one of grpc-gateway are different. They are trying to transport something similar to gRPC over HTTP/1.1. In particular, it allows users to run their gRPC application in classic Go runtime of AppEngine. Also they allow users to reuse existing service implementation in process, but the implementation must be in Go.

grpc-gateway intend to provide traditional JSON-based RESTful APIs on top of other gRPC services. It cannot run in the same process as the services, but it does not require the services to be in Go. Also its handers are compatible to net/http. So you can use the generated proxies as building blocks in your application server.

@yugui yugui closed this as completed Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants