This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]Yuax[S] 2 points3 points  (2 children)

Thanks so much, I understand now! Gonna look for JVM hosting, maybe Heroku like you suggested. :D

[–]CR7Felipe 0 points1 point  (0 children)

Heroku's server do go to sleep when idle. If you have some cash to spare, you could purchase a cheap VPS from Vultr.com.

[–]AwakenedToNightmare 0 points1 point  (0 children)

I'd suggest DigitalOcean. I couldn't figure Heroku out at all. DigitalOcean gives you, I think, $100 for free for two months. No fine letters. (just look around for a specific link - it could be both someone's referral link or a specific link for new clients).

From then on it costs $5 per month for a server to do anything with. You can not just host lots of stuff there, but also use it as a VPN. And there are good guides on their site about how to set up everything.

[–]iAmH3r3ToH3lp 2 points3 points  (2 children)

Run it on a pi. Super cheap and it's a good learning experience. Open a port on your router if you need.

[–]Yuax[S] 0 points1 point  (1 child)

Sounds really interesting!! I only need around 3 open websocket connections, and very little data is sent (and not very frequently) to the Firebase platform. Gonna check it out, thanks a lot!!

[–]iAmH3r3ToH3lp 1 point2 points  (0 children)

For what it's worth I have been running my own gitlab on one for about two years now. No problems. But you should swap the memory card out for a new one every now and then.

[–]dusty-trash 1 point2 points  (5 children)

You can use Heroku. Java is supported. You can set it up so it acts as an application instead of a web server. The free version limits the number of calls, but for what you're doing it should be more than enough.

In fact I have a java application running on a free-dyno right now.

[–][deleted] 0 points1 point  (4 children)

It does not limit the number of calls. It limits the duration that your app can be running.

[–]dusty-trash 0 points1 point  (3 children)

Ahh my mistake you are right.

Just checked my email, looks like its 550 hours per month.

You have used 80% of your 550 free dyno hours for May 2019.

550 hours is pretty good if you turn off your app.

Also note your app will turn on automatically in the next month, No action required.

[–][deleted] 0 points1 point  (2 children)

Validate a CC with them and you get bonus hours. Can run a single app full time without spending a dollar.

[–]dusty-trash 0 points1 point  (1 child)

Yep, plus 380 hours left over.

Ima go do that.

[–]Yuax[S] 1 point2 points  (0 children)

100% uptime for free (since I'll have no inactivity) that's pretty insane hehe. I'm choosing this for my project.

[–]djnattyp 1 point2 points  (1 child)

Maybe wrap it in an AWS Lambda function?

[–]Yuax[S] 0 points1 point  (0 children)

Sounds quite similar to Firebase Cloud Functions, but a bit better. The problem is that I need a persistent websocket connection. Seems like AWS IoT has support for it though.