-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Zuul - Websocket proxy #163
Comments
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. |
Hi Dave, Is there a 2.0 for Netflix Zuul? |
I believe it hasn't been released yet. |
Ok, Thanks |
we're starting websocket development. Very very very interested in websocket support in zuul. Any news or ETA ? |
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. |
Thanks. By scenario 1 they mean to support terminating websockets natively, ie do not plugin another 3rd party support like Spring Websockets? |
Is there already an update of Zuul that supports the full duplex channels on websockets? |
AFAIK there is no Zuul 2.x yet (they got to a release candidate and then stalled). Just keep tracking the Netflix issue. |
See also this alterntive: https://jmnarloch.wordpress.com/2015/11/11/spring-cloud-sock-js-stomp-zuul-no-websockets/ |
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
|
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. |
It's not really zuul websocket support, it's a standalone websocket proxy that happens to sit next to zuul, correct @mthizo247? |
@spencergibb yes that's correct. |
@spencergibb the demo of zuul&websocket is not work with service-id,the demo just support url based service dicsovery |
@ExtremeYu you'll have to speak to the author of the demo. |
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 |
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? |
You'll have to ask Netflix |
@jonfreedman I think spring cloud now has a new gateway solution (namely, http://cloud.spring.io/spring-cloud-gateway/) which already supports Websockets. |
@tsmgodoi what different between the zuul and spring cloud gateway???????????????????????????????? |
@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. |
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:
|
@jonfreedman any new insights since December? |
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?
The text was updated successfully, but these errors were encountered: