Java TCP/UDP 服务器 &Heroku 上的客户端 [英] Java TCP/UDP Server & Client on Heroku

查看:63
本文介绍了Java TCP/UDP 服务器 &Heroku 上的客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Heroku 的新手,我正在考虑构建一个 Java RESTful Web 服务,它可以启动 TCP/UDP 服务器/客户端来处理基于 RESTful 调用的数据流.也就是,RESTful 调用是为流数据创建 TCP/UDP 服务器的触发器.这可能吗?

I'm new to Heroku, and I was thinking about building a java RESTful web service that spins up TCP/UDP servers/clients to handle streams of data based on the RESTful calls. Aka, the RESTful calls are the triggers of TCP/UDP server creation for streaming data. Is that possible?

推荐答案

Heroku 只能处理 HTTP 上的流量.我对您的用例并不完全清楚,但是如果您希望自己启动的服务器处理传入的 UDP 流量,那么您将无法在 Heroku 上执行此操作.

Heroku can only handle traffic over HTTP. I'm not completely clear on your use case, but if you want the servers that you spin up to handle incoming UDP traffic then you won't be able to do it on Heroku.

这篇关于Java TCP/UDP 服务器 &Heroku 上的客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆