spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.55k stars 3.33k forks source link

TCP/UDP Gateway #66

Open laudylcp opened 7 years ago

laudylcp commented 7 years ago

Hello

I want to use spring-cloud-gateway as my load balancer. The problem is that my clients have https connections and some of them have tcp/udp connections.

Can you please let me know if spring-cloud-gateway supports https and tcp/udp connections?

Best regards

spencergibb commented 7 years ago

HTTPS should be supported by spring framework in general. I'm unsure if a TCP/UDP gateway is in scope. We'll keep this issue open until we decide one way or another.

kevinat commented 6 years ago

Any further information about this feature?

spencergibb commented 6 years ago

No, this will not be part of the initial release.

harryyu1018 commented 6 years ago

What's the plan to support HTTPS ?

making commented 6 years ago

@harryyu1018 HTTPS is already supported via Spring WebFlux and Spring Boot here is an example https://github.com/making/pks-master-gateway/blob/master/src/main/resources/application.properties#L7-L14

harryyu1018 commented 6 years ago

@making Thank you.

ShobhrajARaut commented 6 years ago

Support for TCP planned in future ?

spencergibb commented 6 years ago

@ShobhrajARaut not immediately or the near future.

ShobhrajARaut commented 6 years ago

@spencergibb Thank you

dslchd commented 5 years ago

I hope Spring cloud gateway supports tcp protocol.

major2015 commented 5 years ago

@spencergibb the rsocket is tcp socket support module?

spencergibb commented 5 years ago

No it is not. It is only for rsocket not TCP in general

major2015 commented 5 years ago

Does gateway-rsocket have a release plan? @spencergibb

spencergibb commented 5 years ago

Later this year after boot 2.2

FangXiaoMing2021 commented 4 years ago

@spencergibb Now, Spring boot 2.2.x is released, I want to know the plan to support for TCP.

relucant1 commented 4 years ago

Any further information about this feature?

huxipi commented 4 years ago

Any further information about this feature?

spencergibb commented 4 years ago

No

ashraf-revo commented 3 years ago

any good news, for implementing this feature

spencergibb commented 3 years ago

No

skyfour commented 3 years ago

now,it's support tcp or not?

spencergibb commented 3 years ago

Not while this is still open

landsnail commented 3 years ago

hello, is there any new about tcp/udp gateway?

dion-li commented 3 years ago

it's been a long long time!

GaoWenJun commented 2 years ago

hello, is there any new about tcp/udp gateway?

skrutzler commented 2 years ago

We do use spring-cloud-gateway as our reverse proxy and would have a need to also handle TCP connections as well (mqtt broker bridge, websockets do not work here). What is the status of this? @spencergibb

GaoWenJun commented 2 years ago

现在都没有一个好的解决方案

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月7日(星期一) 下午2:48 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [spring-cloud/spring-cloud-gateway] TCP/UDP Gateway (#66)

我们确实使用 spring - cloud - gateway 作为反向代理,并且还需要处理 TCP 连接(mqttbroker bridge 、 websockets 在这里不起作用)。 这个现状如何?@ spencer gib

— 直接回复此邮件,在 GitHub 上查看或取消订阅. GitHub Mobile 上的分流通知监察办或机器人. @.***与>

Deathef commented 2 years ago

hello, there doesn't seem to be a good solution.

PonyTang3 commented 2 years ago

hello, is there any new about tcp/udp gateway?

GaoWenJun commented 2 years ago

no

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年9月8日(星期四) 上午9:19 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [spring-cloud/spring-cloud-gateway] TCP/UDP Gateway (#66)

hello, is there any new about tcp/udp gateway?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ttimot24 commented 2 years ago

we also need this one, please consider implementing this

spencergibb commented 2 years ago

We have no immediate or medium term plan to do this. If we do decide, it will not be until next year

harryyu1018 commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。   您的邮件我已收到,我会尽快阅读并回复您。祝您工作顺利,心情愉悦!

orchestr7 commented 2 years ago

Tomorrow a have a demo to business of my project that I was doing 1 year, but only today our team has understood that we cannot route TCP with sping-cloud-gateway. Looks like I am f***d...

liugddx commented 1 year ago

Any follow-up?

spencergibb commented 1 year ago

https://github.com/spring-cloud/spring-cloud-gateway/issues/66#issuecomment-1240852870

renguoqing123 commented 1 year ago

I also want to know the answer

hhfrancois commented 1 year ago

Yes it will be interesting that we can connect to mongo/rabbitmq/pg etc... behind the gateway

Divine1 commented 1 year ago

Why can't you connect to mongodb, rabbitmq .. etc directly? Why do you have to connect via spring cloud gateway?@hhfrancois

hhfrancois commented 1 year ago

Why can't you connect to mongodb, rabbitmq .. etc directly? Why do you have to connect via spring cloud gateway?@hhfrancois

I use api-gateway for access to microservices in my cluster. Usually UI target microservices by their names. So all my microservice are in the cluster. For example endpoint GET(/user) exposed by the microservice user-srv will be targetable by the UI with the url /user-srv/user The API gateway redirect the request to the microservice, remove the extra path (/user-srv) and the microservices serve the response. Everything works fine. My microservice user-srv is in cluster with the DB. So when the microservice want to access to the DB, no problem, it can use the service name provide by the ingress. But during the developpement maybe I would like to put user-srv outside the cluster. In this case it cannot target the database by the service name for sure. So I need to expose the db port for target it. That works. But I guess It should be interesting to target the api-gateway its port is always binded and like that, no need to bind port of db... I hope I was clear.
In fact I developing an UI for API gateway, with dynamic route locator. I doing something like APISIX but based on spring cloud gateway. If the community is interesting I can show what I did.

Divine1 commented 1 year ago

@hhfrancois understood.

i'm interested , please share it

hhfrancois commented 1 year ago

@Divine1. I will, its too early ofr the moment We cannot paste picture here ? screenshot

Divine1 commented 1 year ago

image

@hhfrancois you can

hhfrancois commented 1 year ago

@Divine1 Thx

batchuchandra123 commented 9 months ago

Does Spring cloud Gateway load balancer now support TCP client connections?

onacit commented 2 weeks ago

Any progress here? Thanks.