News for hackers. Stuff that matters.
Re:My Frugal Indie Dev Startup Stack by stewartmcgown on Monday August 07, 2023 @06:14AM (#37032505)
I used to be CTO of an Uber Eats style service that ran on hosting costs of about £100pm. Thousands of orders every few days, real time driver tracking, self hosted invoice generation, the works. Hetzner servers, Docker Swarm and Cloudflare for the tech.
Re:My Frugal Indie Dev Startup Stack by nordsieck on Monday August 07, 2023 @06:55AM (#37032796)
> Hetzner servers

It is truly amazing to me the value that is provided by renting hardware instead of VPSes. As long as you're willing to roll your own infrastructure instead of buy into a cloud provider's infrastructure.

Re:My Frugal Indie Dev Startup Stack by niemandhier on Monday August 07, 2023 @07:09AM (#37032886)
I did that once and the data center burned down. Sure I could have the service spread over several centers and build distributed backups etc.

In the end self hosting and self managing is a money / time trade off, especially for a side gig I’d us SAS and managed solutions. The one thing one has to make sure off is to not get locked in with a particular provider, so knowing how to do everything yourself is a very valuable skill.

Re:My Frugal Indie Dev Startup Stack by number6 on Monday August 07, 2023 @08:25AM (#37033468)
To be fair, Datacenter burning down is pretty much on the bad luck side of risk management. It's in the same category as your distribution center being hit by an earthquake... I'd guess it wouldn't happen again, but who knows...
Re:My Frugal Indie Dev Startup Stack by nik736 on Monday August 07, 2023 @12:33PM (#37036751)
A Google Cloud region in France was also unavailable for months (or still is?) due to flooding/electricity. But no one is talking about it.
Re:My Frugal Indie Dev Startup Stack by withinboredom on Monday August 07, 2023 @02:34PM (#37038634)
Didn't that happen from someone leaving a sink on or something, causing flooding and then the UPS batteries to short and explode?

I was there when someone at AWS accidentally unplugged an entire region.

Shit happens, it doesn't matter where it's hosted. People act like the cloud is infallible or something. You're literally sending lightning bolts worth of electricity through bricks of metal. Anything can happen.

Re:My Frugal Indie Dev Startup Stack by dangus on Monday August 07, 2023 @07:48AM (#37033186)
> As long as you're willing to roll your own infrastructure

Uh huh. This is why DevOps/SRE roles pay more than development roles.

“Step 2: draw the rest of the owl”

Re:My Frugal Indie Dev Startup Stack by Propelloni on Monday August 07, 2023 @01:10PM (#37037383)
They do? That's interesting news!
Re:My Frugal Indie Dev Startup Stack by mrweasel on Monday August 07, 2023 @02:26PM (#37038519)
Also more open positions, at least in some market.
Re:My Frugal Indie Dev Startup Stack by callalex on Monday August 07, 2023 @06:45PM (#37041976)
It pays more because the on-call/pager requirements can be absolutely soul-crushing.
Re:My Frugal Indie Dev Startup Stack by dangus on Tuesday August 08, 2023 @08:47AM (#37048226)
If you have a terrible manager, team, and product/platform. The reality is that most outages are caused by 9-5 changes made by humans.
Re:My Frugal Indie Dev Startup Stack by intelVISA on Monday August 07, 2023 @08:21AM (#37033425)
If you know what you're doing it's easy enough to roll out a multi-region distributed system with HA and backups on a pretty modest (<100pcm) budget that can handle competitive QPS.

However, most people do not - some will learn, but most will fall for the cloud marketing depts and become infra renters for life. Teach a man to fish, and so on.

Re:My Frugal Indie Dev Startup Stack by jiriro on Monday August 07, 2023 @09:52AM (#37034469)
What is HA ?
Re:My Frugal Indie Dev Startup Stack by wlesieutre on Monday August 07, 2023 @09:55AM (#37034511)
Guessing "high availability"
Re:My Frugal Indie Dev Startup Stack by marcosdumay on Monday August 07, 2023 @11:52AM (#37036127)
It's a pretty common abbreviation of high availability on this context, with a heavy implication on active-passive redundancy (although the GP looks like an exception here). It's more used than the full wording, and part of the name of some important tools.

So, yeah, it's good that you asked, because it's not as widely known as the people that use it think it is.

Re:My Frugal Indie Dev Startup Stack by fragmede on Monday August 07, 2023 @03:41PM (#37039861)
* * *
Re:My Frugal Indie Dev Startup Stack by varispeed on Monday August 07, 2023 @10:28AM (#37034933)
Another reason is that if you look for an investor, one of the first things they ask is how / where you host it. If it is anything remotely DIY you'll be turned down.

It was actually painful to see start ups spending thousands a month on hosting, that could be easily achieved as you say under 100 pcm plus. They would have to get a contractor to set it up and for support, but it would have worked out much cheaper and they could have bumped the salaries of their workers.

Re:My Frugal Indie Dev Startup Stack by monero-xmr on Monday August 07, 2023 @10:36AM (#37035022)
Labor vs. commodity. Need an expert key-man to roll your own AWS. A few thousand bucks a month for the automatic one. Penny wise pound foolish etc.
Re:My Frugal Indie Dev Startup Stack by cyberpunk on Monday August 07, 2023 @12:33PM (#37036764)
> If it is anything remotely DIY you'll be turned down.

Why is that?

Re:My Frugal Indie Dev Startup Stack by JohnBooty on Monday August 07, 2023 @12:46PM (#37036990)
I'm sure you can guess - pure risk aversion. Your business idea is risky enough, and they would need engineers to assess your (possibly ever-changing) DIY stack.

You see the same thing in the corporate world for in-house stuff. Your manager (and your manager's manager) don't want to hear about in-house or self-hosted things that AWS can provide.

This is totally understandable. It's a repeat of the whole "nobody ever got fired for buying IBM" mantra of computing's early decades.

It also totally sucks.

Re:My Frugal Indie Dev Startup Stack by Balladeer on Monday August 07, 2023 @03:45PM (#37039921)
> some will learn, but most will fall for the cloud marketing depts and become infra renters for life

Do you have any learning recommendations for someone looking to start down this path? I've only ever worked in an infra-renter context, and I've begun exploring the 'rent from Hetzner, manage your own infra' for personal projects, but I would love to learn from the paths of experts where possible.

Re:My Frugal Indie Dev Startup Stack by arrowsmith on Monday August 07, 2023 @04:16PM (#37040384)
I would also like to hear some recommendations as I've been considering making a similar switch.
Re:My Frugal Indie Dev Startup Stack by intelVISA on Monday August 07, 2023 @04:51PM (#37040791)
I'm no expert but hopefully I can still point you toward the happy path: start very small and increase distributed complexity at your own pace until you can fully appreciate the entire end-to-end system and all the processes involved. The book: DDIA is a well-known 101, if a little primitive, and has references you can dig into as well.

Ideally, you also have some exposure to this at $job as simply building DIY infra horrors without seeing the real-world context, tradeoffs, etc. in which they typically operate will be misleading.

Re:My Frugal Indie Dev Startup Stack by freefaler on Monday August 07, 2023 @06:12PM (#37041663)
For your basic needs you'd need:

1. a DNS monitoring with failover (DNSMadeeasy has a decent solution)

2. a Haproxy setup with health checks for switching to a working upstream service

3. a distributed filesystem

4. a master-slave replication with monitoring (something like Mariadb + orchestrator service)

and nightly backups for all this. Database and FS are latency sensitive so they shouldn't be too far apart.

Re:My Frugal Indie Dev Startup Stack by hardwaresofton on Monday August 07, 2023 @08:40AM (#37033604)
I'm working on a middle-tier solution for this gap -- I call it Nimbus, but basically the idea is to provide managed services at low cost cloud prices.

There's no reason someone should have to run a service like Chatwoot themselves, the software is so good that it's mostly set & forget for most small use cases.

That's where I come in. Unfortunately I don't have ChatWoot yet, but I have (and use) Umami for page view tracking extensively on my own projects now, with Nimbus[1]. The dogfood tastes decent so far.

[1]: https://nimbusws.com/managed/umami/

Re:My Frugal Indie Dev Startup Stack by nextaccountic on Tuesday August 08, 2023 @04:12AM (#37045979)
do you anticipate that hosted umami will have features unavailable in the open source version?
Re:My Frugal Indie Dev Startup Stack by hardwaresofton on Tuesday August 08, 2023 @06:30AM (#37046924)
Yeah, but all improvements will likely be upstreamed/made open source (their license isn't AGPL or anything but just makes sense to me since it's MIT).

The first thing I want to do is add a backup mechanism that isn't just take a snapshot -- There are a bunch of similar tools to Umami and I don't think that any of them have a really good cross-project way of taking backups.

Feels like there should be a page view/analytics backup standard, so you can easy move from a tool like Plausible or Umami and try out a new one, like Fugu.

But outside of advanced functionality I think my platform is just a lot closer on cost. The instance costs don't go up per traffic served (especially since 99% of people won't need that) -- it's more like parts + maintenance (and since Umami is good software it doesn't need a TON of maintenance either, just regular patches and some monitoring/extremely light resilience engineering).

Re:My Frugal Indie Dev Startup Stack by harshitaneja on Monday August 07, 2023 @09:47AM (#37034410)
Hetzner is great and I love it and use it for all my dev needs. But there availability is in limited zones and for production I do suffer from the latency. Haven't found any other provider which costs anywhere near the same(every comparable server is at least 2x the cost). I use their AX41-NVME. Any suggestions of an alternate?
Re:My Frugal Indie Dev Startup Stack by Tijdreiziger on Monday August 07, 2023 @12:18PM (#37036493)
Maybe OVH or Scaleway?
Re:My Frugal Indie Dev Startup Stack by freefaler on Monday August 07, 2023 @01:28PM (#37037648)
Both of them are french companies and from my experience with them if you need support is a hit or miss.
Re:My Frugal Indie Dev Startup Stack by tracker1 on Monday August 07, 2023 @05:24PM (#37041157)
I've been pretty happy with my OVH server, but agreed on support... had better luck with chatgpt and a lot of additional reading getting my CIDR block of addresses configured under ProxMox (which made me far less worried about ChatGPT taking my job any time soon).

In the end, was an interesting learing experience, that I hope to not have to repeat. Only went for a single server as I had several smaller VPSes on DigitalOcean and wanted to add a mail server in the mix, and couldn't reliably send via DO or Linode, so was easier to consolidate and run on a single/larger host for hobby projects.

Re:My Frugal Indie Dev Startup Stack by dlisboa on Monday August 07, 2023 @10:07PM (#37043587)
Vultr has some very cheap offerings and maybe worth a look. I can't speak to their reliability or service, but they have DCs everywhere even in South America and Africa where there are few cloud options outside of AWS. They're more expensive than Hetzner, maybe even a little over your 2x range depending on your load, but if latency is your issue they probably got you covered.
Re:My Frugal Indie Dev Startup Stack by qingcharles on Monday August 07, 2023 @11:57AM (#37036179)
You'd be amazed how much you can get out of one of the Hetzner $3/mo ARM servers with the right code.

I use a $6/mo box for my primary business hosting, but I have a $3/mo one that I'm using to build v2, really just to prove what's possible. If you set up your DB and caching right you can do so much with so little...

Re:My Frugal Indie Dev Startup Stack by ljm on Monday August 07, 2023 @12:04PM (#37036272)
Those ARM boxes are incredible for the price, I'm using them to document a hobby K8S cluster because the overall cost is low enough that it won't price a hobbyist out.

You get a lot of bang for your buck out of them.

Re:My Frugal Indie Dev Startup Stack by esafak on Monday August 07, 2023 @01:17PM (#37037486)
Which k8s are you using and how are you managing it?
Re:My Frugal Indie Dev Startup Stack by suralind on Monday August 07, 2023 @06:17PM (#37041723)
Talos Linux is great.
Re:My Frugal Indie Dev Startup Stack by ljm on Thursday August 10, 2023 @09:41AM (#37076057)
k3s, and nothing fancy except using a splash of helm to set some things up. The cluster has an auto-updater for unattended upgrades.
Re:My Frugal Indie Dev Startup Stack by dlisboa on Monday August 07, 2023 @01:09PM (#37037359)
Similarly, but on the opposite spectrum, I also wonder how far you can go on vertical scaling nowadays. For 200 EUR/month on Hetzner you get a dedicated 80-core ARM CPU, 128GB ECC RAM, 2TB SSD...using a good performance multi-threaded language, what _can't_ you run on that? It's ridiculous value.
Re:My Frugal Indie Dev Startup Stack by nordsieck on Monday August 07, 2023 @06:14PM (#37041684)
> what _can't_ you run on that? It's ridiculous value.

Yeah - I remember a StackOverflow talk[1] where they basically said that they just vertically scale their database.

The fact that they were able to make it work tells me that most businesses should probably just go that route and avoid the headache of distributed systems[2].

---

1. https://www.infoq.com/presentations/stack-exchange/

2. Obviously a business should probably invest in redundancy when it comes to data (as did StackOverflow), but a pure "Raid 1" setup is the easiest of distributed systems to understand.

Re:My Frugal Indie Dev Startup Stack by esafak on Monday August 07, 2023 @01:09PM (#37037356)
What's the best way to build and run a containerized PaaS on Hetzner?
Re:My Frugal Indie Dev Startup Stack by slig on Tuesday August 08, 2023 @02:52PM (#37053744)
CapRover / Dokku.