r/scala•
absolutejam

Scala hosting services with free tier

Hey!

I'm working on a Scala app and I want to assess my options for hosting, ideally for free while I'm l scale is still incredibly small (well, just me for now 😂).

I'm no stranger to managing infrastructure (that's my day job) but hosting a Scala/JDK app is not something I've done before, and since this is a hobby project, I'd like to use a low friction PAAS offering if possible, just to minimise maintenance.

My preferred cloud is GCP and I'm happy to containerise the workload. I've already considered sticking it in something like cloud run or a plain old VM using free tier, but I'm hoping there might be some lower maintenance and more magical - ideally a java flavoured Vercel or thereabouts? 😉

The app currently hosts a Graphql api and also performs polling of an event stream (event sourcing), so I don't think a 'cold start' option would be viable unless I rework the polling and perform the work in-line trigger based 🤔

Thanks in advance!

Posted Nov 21, 2022, 9:08 PM UTC

86
yawaramin•

Have you considered Fly.io? They have a pretty good free tier. You just have to make sure you have a Dockerfile and they build and deploy for you.

5
Some1SnaggedJetjager•

Free tier is 256 mb - is it enough for JVM?

1
yawaramin•

Good point. Maybe not for a traditional JVM, might need to go for Scala Native or Graal Native.

3
[deleted]•

[deleted]

1
[deleted]•

[deleted]

1
fokot2•

https://www.heroku.com/pricing used to have a free tier for a year.

1
DrKedorkian•

Google app engine is fantastic IMO

1
AlexITC•

Sadly, I don't think we have any free alternative to services like Vercel.

I'm no stranger to managing infrastructure (that's my day job)

Given this, I wonder if you have ever worked with Ansible, if so, you could pick these playbooks to deploy to a ubuntu server, these playbooks are pretty generic for Scala apps, you will need to update the build/run script, everything else is already handled (like uploading the app to a server, creating users, registering a systemd service, etc).

1