News for hackers. Stuff that matters.

Ask HN: Can I get a faster stack for $0?

I'm broke and I want to start a SaaS. I can pay 0$.

I spent a whole month coding my SaaS in laravel + livewire and it's been awesome. couldn't be any better.

When it came to deployment I deployed the app to a free ec2 t2.micro but it sucked big time.

tried using hostinger premium from a friend, but same. response time is very high om hostinger and on ec2 ram is getting full quickly.

website is basic openai wrapper + crud, nothing fancy.

I was thinking of hosting the landing page + main website on cloudflare pages using some static site generators.

and the dashboard to be a htmx (hosted on cloudflare pages) + axum (rust backend) hosted on my ec2 t2.micro

can I get any faster/lighter with $0?

if I can handle 1000 requests/sec with t2.micro I would be happy

( 11 comments | 5 points | on HN )
Re:Ask HN: Can I get a faster stack for $0? by speedgoose on Sunday December 03, 2023 @04:28PM (#38510946)
You can afford the openai api costs but don’t want to spend a few dollars on a better host and you would rather reimplement your product?
Re:Ask HN: Can I get a faster stack for $0? by solardev on Sunday December 03, 2023 @03:31PM (#38510471)
Vercel? It depends on what exactly you're hosting (eg whether it has a lot of serverless calls) but the free plan will get you pretty far. And it's cached behind a CDN. For a basic static site it has pretty good limits.

Vercel is basically a managed wrapper on top of other cloud services, including AWS and Cloudflare and various CDNs.

But it's much easier to use and doesn't require you to separately spin up a bunch of different accounts at different providers to get the same level of service.

Also the pro plan is $20 and gets you much more.

They are the owners of Next.js and my guess is their lower free and pro plans are loss leaders for their enterprise offerings. It's a great service for getting your project off the ground though. You can go from a repo to a hosted website in like 2 minutes.

I used to use Nearlyfreespeech.net before them for ultra cheap hosting, but Vercel is a much nicer platform overall.

Re:Ask HN: Can I get a faster stack for $0? by Looky1173 on Monday December 04, 2023 @01:59PM (#38521492)
Keep in mind that Vercel does not allow for-profit usage on its free Hobby plan. Netlify does, though.
Re:Ask HN: Can I get a faster stack for $0? by solardev on Monday December 04, 2023 @07:21PM (#38525321)
Didn't know that. Thanks for pointing that out!
Re:Ask HN: Can I get a faster stack for $0? by smoldesu on Sunday December 03, 2023 @03:34PM (#38510499)
Oracle has an extremely generous free tier, as long as you register a credit card with them: https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier...

> All tenancies get the first 3,000 OCPU hours and 18,000 GB hours per month for free for VM instances using the VM.Standard.A1.Flex shape, which has an Arm processor. For Always Free tenancies, this is equivalent to 4 OCPUs and 24 GB of memory.

It's a bit sketchy since... well, Oracle, but you do get a decent machine. I've been using one for a while with no complaints.

Re:Ask HN: Can I get a faster stack for $0? by quickthrower2 on Sunday December 03, 2023 @04:51PM (#38511120)
Can the friend help you $5/m because I find the Digital Ocean app service or droplets to be pretty decent. Like load time faster than eye refresh fast probably because I send out cache headers and it CDNs them.

Then maybe grab a free Postgres DB from Vercel or similar to get started (as their DB isn’t cheap)

Another avenue which I find more of a hassle but it is free and scales up is static hosting (Netlify, Vercel, etc.) with Firebase. You might pay 1-2c a month if you use it a little. But wouldn’t recommend rewriting just to save money when $60 should do you for a year of hosting.

Re:Ask HN: Can I get a faster stack for $0? by sema4hacker on Sunday December 03, 2023 @05:11PM (#38511241)
If your home connection is fast enough, just put a spare or cheap dedicated machine on your router and host everything yourself instead of in the cloud.
Re:Ask HN: Can I get a faster stack for $0? by solardev on Sunday December 03, 2023 @05:22PM (#38511339)
Your ISP might get upset if you put a lot of traffic (especially upstream) on a non-business line.
Re:Ask HN: Can I get a faster stack for $0? by lgkk on Sunday December 03, 2023 @05:12PM (#38511246)
I have a go service running on one instance 1vcpu and 0.5gb ram that can handle 5-7k rps. For like a couple bucks basically per month.

I use embedded db to serve as a disk cache and allocate 10gb ssd.

Re:Ask HN: Can I get a faster stack for $0? by joshxyz on Sunday December 03, 2023 @10:58PM (#38513582)
go the extra mile of studying yc's free startupschool.org curriculum. come up with a project, look for a cofounder there, post your weekly updates there, and apply for yc startup school deals. you will get $5k in aws, $2k in gcp, $1k in do, waived fees in stripe, discounted company setup in stripe atlas and clerky.

best case you build a startup and turn your life around, worst case you build a project that improves your skillset. yc is very supportive regardless if you get in or not.

Re:Ask HN: Can I get a faster stack for $0? by gardenhedge on Tuesday December 05, 2023 @07:55PM (#38539141)
Does anywhere offer free hosting for a stake in the company?