Live data from Hacker News

Running an open source app: Usage, costs and community donations

spliit.app

131–140 of 167 posts

Re: Running an open source app: Usage, costs and community donations

#131
post #39
post #21

Earlier quoted context omitted.

You're right but I'll play devil's advocate for teaching purposes: * Usage won't be uniformly distributed and you may need to deal with burst traffic for example when a new version is released and all your users are pulling new config data. * Your application data may be very important to your users and keeping it on a single server is a significant risk. * You're users may be geographically distributed such that a u…

* that's just static files. Even a $4 droplets will hardly ever get into issues serving that, even with hundreds of simultaneous requests. * Okay, I guess that means we should use 2? So that's $8 now. * Vercel really doesn't help you there beyond serving static files from cdn. That hardly matters at this scale, you should keep in mind that you "only" add about 100ms of latency by serving from the other side of the gl…

People use Vercel ... because...

...haven't worked it out yet, all I can come up with is "they don't know any better".

Surely that can't be true?

Re: Running an open source app: Usage, costs and community donations

#132

Earlier quoted context omitted.

Best I’ve been able to do is around $22 a month on DO, would love to hear alternatives that are cheaper

Pi 5 + Cloudflare

Any guides or blogs on how to do that?

Re: Running an open source app: Usage, costs and community donations

#133
post #82

Earlier quoted context omitted.

That's why I make all my software AGPL now. I haven't published any software at all recently. But if I did (anything non-trivial), it would be AGPL. Or even SSPL. Permissive licensing (MIT, BSD, Unlicense, public domain, etc) is a scam to make you work for companies for free - if your software is worth anything to them, that is. They told developers they should use MIT licenses so more people would use their software…

If you don't want to give away software, and it sounds like you don't, then. Don't. Perhaps you're under the impression that I blindly click the button for a permissive license? No. I read it first. I know what it allows. That's why I choose it. I think it's nice when companies make money, for the record. Pays for houses, puts food on the table, sends kids to summer camp and college. Some of them even make a lot of m…

Did you know that every dollar a company makes gets taken away from someone? It's zero-sum if you aren't close to Jerome Powell. Why assume the dollar is better in the hands of the company owner than whoever had it before?

Re: Running an open source app: Usage, costs and community donations

#134
post #32

Earlier quoted context omitted.

> It seems like computers are getting more capable, but developers are becoming less capable at roughly the same pace. And that makes perfect sense. Why should humans inconvenience themselves to please the machine? If anyone’s at fault, it’s the database for not being smart enough to optimize the query on its own.

[flagged]

That’s besides the point I’m making. Technology should develop towards simplifying humanity’s life, not making it more complicated. It’s a good thing we don’t have to use clever loop constructs anymore, because compilers do it for us. It’s a good thing we don’t have to obsess about the right varchar size anymore, because Postgres‘ text does the right thing anyway.

It’s a systemic problem. You’re going to loose the battle against human nature: Ever noticed how, after moving from a college dorm into a house, people suddenly manage to fill all the space with things? It’s not like the dorm was enough to fit everything they ever needed, but they had to accommodate themselves to it. This constraint is artificial, exhausting to keep up, and, if gone, will no longer be adhered to.

If a computer suddenly becomes more powerful, developers aren’t going to keep up their good habits performance optimisation, because they had those only out of necessity in the first place.

Re: Running an open source app: Usage, costs and community donations

#135
post #74

I'm always curious what folks use for their database for things like this. Even though I like SQLite--a lot--my preference has become that the app is generally separate and mostly stateless. Almost always the data is the most important thing, so I like being able to expand/replace/trash the app infra at will with no worries. Thought about maybe running a Postgres VPS, but I've enjoyed using neon.tech more than I expe…

Spinning up a VPS for things like this is tempting to me too, but not having done significant backend work in over a decade my worry would be with administering it — namely keeping it up to date, secure, and configured correctly (initial setup is easy). What's the popular way of handling that these days?

Every case is different but as a baseline, you could use Ubuntu or Debian for automatic security upgrades via unattended-upgrades[0], harden ssh by allowing only pubkey authentication, disallow all public incoming connections in the firewall except for https traffic if you're serving a public service, everything else (ssh, etc) can go over wireguard (tailscale makes this easy). Use a webserver like nginx or caddy for tls termination, serving static assets, and proxying requests to an application listening on localhost or wireguard.

[0]: https://wiki.debian.org/UnattendedUpgrades

Re: Running an open source app: Usage, costs and community donations

#136

Earlier quoted context omitted.

If you don't want to give away software, and it sounds like you don't, then. Don't. Perhaps you're under the impression that I blindly click the button for a permissive license? No. I read it first. I know what it allows. That's why I choose it. I think it's nice when companies make money, for the record. Pays for houses, puts food on the table, sends kids to summer camp and college. Some of them even make a lot of m…

Did you know that every dollar a company makes gets taken away from someone? It's zero-sum if you aren't close to Jerome Powell. Why assume the dollar is better in the hands of the company owner than whoever had it before?

The economy is not a zero sum game. We (non-politicians/non-billionares) have significantly more resources than we had 100 years ago, and we will have significantly more resources in 100 years than we do now. And open source developers are a small part of why.

Re: Running an open source app: Usage, costs and community donations

#137

Re your question on saving costs: If you run it on a single Linux VPS, then I suspect you can get the costs down to 5-10$ per month. One thing I find interesting is the growth chart: It's linear. But given that the app clearly has some traction, and is viral in nature, how come it isn't exponential?

Same thought, I am absolutely blown away by how much vercel overcharges. I host a similar application on netcup (like hetzner) for 3$ per month, and when it was on HN, it easily handled over 10k requests per hour

Re: Running an open source app: Usage, costs and community donations

#138
post #120

Earlier quoted context omitted.

Pi 5 + Cloudflare

I run a homelab that isn't too far from this, but I wouldn't recommend it without a few caveats/warnings: - Don't host anything media-heavy (e.g. video streaming) - Make sure you have reasonable upload speeds (probably 10+ Mbps min) - Even behind Cloudflare, make sure you're comfortable with the security profile of what you're putting on the public internet The min upload speed is mostly about making sure random inte…

Oh yeah definitely don't try this unless you have fiber and your ISP isn't too twitchy.

My suggestion is mainly for static site hosting since the Pi only needs to update the cloudflare cache when you make changes, and it should be able to handle a small db and few background services if you need them.

Re: Running an open source app: Usage, costs and community donations

#139

Earlier quoted context omitted.

Certainly, I just mean that we are hitting a point where there can be professional devs, with multiple years of experience at tech companies successfully building software, who have only ever known and worked with a PaaS to deploy an app.

It's frustrating too because deployment technologies and tools continue to get better and better. It's never been easier to deploy an application + database to some arbitrary computer. You can do it declaratively, no SSH, no random shell scripts, no suspicious fiddling. Also, sidenote: but for small stuff you can just deploy in your home. I've done it before. It's really not that scary, and odds are you have a comput…

>It's never been easier to deploy an application + database to some arbitrary computer. You can do it declaratively, no SSH, no random shell scripts, no suspicious fiddling.

May I ask, what you are using?

Re: Running an open source app: Usage, costs and community donations

#140

Earlier quoted context omitted.

Pi 5 + Cloudflare

Any guides or blogs on how to do that?

Loads, but it'll depend on what you want to do exactly. I think this should be the approximate list of things:

- domain at Cloudflare set up to cache requests (this will take the brunt of the site traffic)

- static IP at home (call your ISP)

- port forwarding on your router to the Pi for 80 and any other ports you need, maybe a vlan if you're feeling like isolating it

- a note on the Pi that says "don't unplug, critical infra"

- the same setup on the Pi as you'd do on a cloud server, ssh with key pairs, fail2ban, etc.

Post reply on HN