r/SpringBoot • u/hustler0217 • Oct 10 '24
Where do I host SpringBoot backend for personal projects?
The title.
Any suggestions? Are there any free ones which allow no limit to no. of days?
8
6
u/ManavalanFromDufai Oct 10 '24
Oracle Cloud has a free tier VPS.
1
4
3
u/MoreCowbellMofo Oct 10 '24
I tried was with an ecs cluster to run the front and back end but also a db. It’s costing me $50/month because of the vpc just for the database to remain up. Wouldn’t recommend.. I’m tempted to start over
1
u/hustler0217 Oct 10 '24
Oh that's bad.
Mine is a basic app with simple CRUDs. Will that involve too much operation costs? No right?1
u/MoreCowbellMofo Oct 10 '24 edited Oct 10 '24
There’s a command line utility you can download to get a cost for your deployment. I forget its name but screen shot stuff like that so will dig it out.
My app is simple. The problem is if you want to set up a proper deployment that will scale easily it costs a decent amount despite not really utilising it
Edit: just checked and I don’t have it. Will look later as I probably liked a comment somewhere
1
u/CobyBoy_x Oct 12 '24
Aren't you using the free tier?
1
u/MoreCowbellMofo Oct 12 '24
Yes, but I think it’s only free for the first 750hours or something which is abt 1 month
3
8
u/notTorvalds Oct 10 '24
AWS offers 1 year free access to many of it's services, EC2 included.
15
Oct 10 '24
Agree, but for a beginner asking this question, it’s so easy to get aws wrong and then you end up with an unexpected bill.
I’d recommend buying a vps from digital ocean, some can be as cheap as 5$ and then using nginx and docker to host the applications.
Keep using that cheap instance until you need more
0
u/hustler0217 Oct 10 '24
Thanks.
There is an option to select 'Free Tier' in AWS RDS for database.
Then, I need to set up the EC2 for the SB app. Am I right?2
Oct 10 '24
Essentially yes, create db. Lookup videos on deploying spring boot apps to ec2.
but the only reason why I suggest against AWS is it’s easy to get caught in fees when you don’t know what you’re doing, and don’t read the usage limits very carefully
1
2
2
2
u/qxtno Oct 10 '24
I used to use northflank with supabase, it's not much, but it is free credit card required for northflank unfortunately).
1
2
2
2
u/Bravesquintz Oct 10 '24
I use GCP cloud run integrated with GitHub actions to auto build and deploy on merges to main. took very little time to set up and works like a charm
1
1
u/Historical_Ad4384 Oct 10 '24
Better to get a static IP from your ISP and host it on your home network
1
u/polacy_do_pracy Oct 10 '24
if you are a student you can check out some free tiers https://education.github.com/pack
1
u/Media_Dunce Oct 10 '24
I'm an Azure guy. You can configure an Azure App Service to run your applications (use the F1 tier Service Plan for free use). The only real limit is that it will turn off automatically after 5 minutes of inactivity (and no Virtual Network access)
1
1
2
Oct 10 '24
[removed] — view removed comment
1
u/hustler0217 Oct 10 '24
I need to run free microservice instances and DB. Isn't Heroku paid?
Anyway, thanks for the response.
12
u/mindhaq Oct 10 '24
A VPS is the way to go, but will require at least some basic Linux admin skills.