Java TCP/UDP Server & Client on Heroku

2019-07-29 17:42发布

问题:

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?

回答1:

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.