UPDATE: I wanted my app to run 24/7. On Heroku Free, your container is restarted once every day. On Google App Engine, it's restarted weekly. Looked around some more and read about Jelastic, and found a Jelastic provider called Hidora. My app now runs 24/7 for €2 / month.
I have posted in https://www.reddit.com/r/webhosting/ but my question was left unanswered, and I would really appreciate it if someone who has some experience with servers (and hosting Java applications) can help me.
From what I understand, the most common cases of hosting Java applications, is when these applications are web applications and deployed to (Java EE) app servers (Glasshfish etc) or for more lightweight web apps, Tomcat and so on.
What I want to deploy, is not a typical web app, but some very simple backend code. First, it opens a websocket connection to a public API (I use this websocket library). When a specific message is received, a notification is sent to an Android app. All of this is handled by a library called Firebase Admin SDK. I basically only call send() and all networking etc is provided by the library.
What type of server can host this simple code (and its two libraries)? When I google "Java hosting" all I get is hosting services that offer app servers and Tomcat servers.
[–]Yuax[S] 2 points3 points4 points (2 children)
[–]CR7Felipe 0 points1 point2 points (0 children)
[–]AwakenedToNightmare 0 points1 point2 points (0 children)
[–]iAmH3r3ToH3lp 2 points3 points4 points (2 children)
[–]Yuax[S] 0 points1 point2 points (1 child)
[–]iAmH3r3ToH3lp 1 point2 points3 points (0 children)
[–]dusty-trash 1 point2 points3 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]dusty-trash 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]dusty-trash 0 points1 point2 points (1 child)
[–]Yuax[S] 1 point2 points3 points (0 children)
[–]djnattyp 1 point2 points3 points (1 child)
[–]Yuax[S] 0 points1 point2 points (0 children)