Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upZuul - Websocket proxy #163
Comments
This comment has been minimized.
This comment has been minimized.
Zuul 1.x is pretty much limited to HTTP as far as I know (@spencergibb correct me if I'm wrong), and the current Spring Cloud proxy filter is probably not well suited to non-REST payloads (e.g. streaming). If we move to Zuul 2.0 at some point it opens up other possibilities. |
This comment has been minimized.
This comment has been minimized.
Hi Dave, Is there a 2.0 for Netflix Zuul? |
This comment has been minimized.
This comment has been minimized.
I believe it hasn't been released yet. |
This comment has been minimized.
This comment has been minimized.
Ok, Thanks |
This comment has been minimized.
This comment has been minimized.
we're starting websocket development. Very very very interested in websocket support in zuul. Any news or ETA ? |
This comment has been minimized.
This comment has been minimized.
See this comment from zuul issues: Netflix/zuul#112 (comment). The short is zuul can terminate websockets in v2, but full duplex channels will come after a stable v2 and they integrate http://reactivesocket.io. |
This comment has been minimized.
This comment has been minimized.
Thanks. By scenario 1 they mean to support terminating websockets natively, ie do not plugin another 3rd party support like Spring Websockets? |
This comment has been minimized.
This comment has been minimized.
Is there already an update of Zuul that supports the full duplex channels on websockets? |
This comment has been minimized.
This comment has been minimized.
AFAIK there is no Zuul 2.x yet (they got to a release candidate and then stalled). Just keep tracking the Netflix issue. |
This comment has been minimized.
This comment has been minimized.
See also this alterntive: https://jmnarloch.wordpress.com/2015/11/11/spring-cloud-sock-js-stomp-zuul-no-websockets/ |
This comment has been minimized.
This comment has been minimized.
Zuul 2 is just right around the corner but although websocket support is planned it will not be part of the first release. Zuul 2 : The Netflix Journey to Asynchronous, Non-Blocking Systems
|
This comment has been minimized.
This comment has been minimized.
We have created a web socket support feature to resolve this issue. I will be creating a pull request in spring cloud netflix soon. The library and demo are currently hosted in github. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It's not really zuul websocket support, it's a standalone websocket proxy that happens to sit next to zuul, correct @mthizo247? |
This comment has been minimized.
This comment has been minimized.
@spencergibb yes that's correct. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@spencergibb the demo of zuul&websocket is not work with service-id,the demo just support url based service dicsovery |
This comment has been minimized.
This comment has been minimized.
@ExtremeYu you'll have to speak to the author of the demo. |
This comment has been minimized.
This comment has been minimized.
Have been looking at this issue, we have a similar requirement, to proxy websocket connections through a zuul server. The requirement is slightly different though because the websocket connections will be 'special' and won't need to be handled in the same way as other requests that come through zuul. Previously this was really easy to achieve with nodejs and http-proxy. This is an example of how to get started in java and Spring Boot: https://github.com/barrett-rob/java-websocket-reverse-proxy NB: no safety, connection reestablishment, etc |
This comment has been minimized.
This comment has been minimized.
What's the status of Zuul 2.0? Is 2.0.0-rc.2 suitable for production use or is "the process of releasing Zuul 2 as open source" still ongoing? |
This comment has been minimized.
This comment has been minimized.
You'll have to ask Netflix |
This comment has been minimized.
This comment has been minimized.
@jonfreedman I think spring cloud now has a new gateway solution (namely, http://cloud.spring.io/spring-cloud-gateway/) which already supports Websockets. |
This comment has been minimized.
This comment has been minimized.
@tsmgodoi what different between the zuul and spring cloud gateway???????????????????????????????? |
This comment has been minimized.
This comment has been minimized.
@ExtremeYu I don't know. I haven't used it yet. I think it is based on spring boot 2.0 and spring framework 5. So probably you won't be able to use it with existing software without updating it. |
This comment has been minimized.
This comment has been minimized.
I spent several hours yesterday looking at the alternatives, none of which I could make work with netty-socketio. For reference these include:
Given what I'm trying to achieve I'm just putting this on hold until December. Currently the Spring release milestones are:
|
This comment has been minimized.
This comment has been minimized.
@jonfreedman any new insights since December? |
This comment has been minimized.
This comment has been minimized.
Zuul 2 will not be incorporated into Spring Cloud. See spring cloud gateway for websockets support |
We currently have a direct Websocket connection that goes to a backend webservice (via a load balancer F5).
If we get F5 out of the picture in what regards webservices, and F5 will only talk to Zuul (let's say), can we proxy a websocket connection from browser to webservice via Zuul?