News for hackers. Stuff that matters.
Re:Costs of running a Python webapp for 55k monthly users by threeseed on Friday September 04, 2020 @02:31AM (#24372284)
It always amazes me how people are so free to judge other's situations.

It's great that your web app only costs $10/month but others may have web apps that are more computationally intensive e.g. video processing or ML inference etc or simply can't join everything they need at runtime.

And it's great that you're willing to deny those 50k users a day access to your service when that cheap VPS inevitably falls over. But others may be monetising that traffic and will want a HA solution so their revenue isn't impacted.

All of those add complexity and cost to an architecture.

Re:Costs of running a Python webapp for 55k monthly users by maxk42 on Friday September 04, 2020 @02:54AM (#24372406)
TekMoi is right. I have an Alexa top 6k site which is vastly more complicated (media hosting, load balancing, multiple VMs, DDOS protection, transactional emails, automated backups) which costs $200 / month on AWS.

The fact that this person is spending nearly as much to support 50k users a day as I do to support more than 4 million cannot be hand-waived away by "people are so free to judge other's[sic] situations". The matter is worsened by the fact that the application is so simple that it doesn't even support user accounts. There is room for discussion here about efficiency in application architecture. More importantly, an article billing itself as "Costs of running a Python webapp for 55k monthly users" is silly because there is no way this is representative of anything. I'm afraid new hackers will be scared by the high costs listed here and be discouraged in their own efforts.

Re:Costs of running a Python webapp for 55k monthly users by senko on Friday September 04, 2020 @03:11AM (#24372503)
If you support 4 million monthly visitors on a media site, and have multiple EC2 instances running, I'd love to see a cost breakdown structure, because in my (obviously incomplete and possibly naive) calculations, the bandwidth alone would cost more than $200/mo.
Re:Costs of running a Python webapp for 55k monthly users by maxk42 on Friday September 04, 2020 @03:18AM (#24372540)
CloudFlare covers the media bandwidth costs for a mere $20 / month. The uploading and media conversion is the difficult and costly (in terms of CPU) portion.
Re:Costs of running a Python webapp for 55k monthly users by chmod775 on Friday September 04, 2020 @11:22AM (#24375727)
>CloudFlare covers the media bandwidth costs for a mere $20 / month.

Your media files must be extremely small.

I'm guessing they're less than 20MB on average, because a) CF hasn't shown you the door yet b) they don't even cache anything bigger than half a gigabyte.

Re:Costs of running a Python webapp for 55k monthly users by maxk42 on Friday September 04, 2020 @03:18AM (#24372545)
Also to be clear I'm talking about image uploads, not video. Still more complicated than this app.
Re:Costs of running a Python webapp for 55k monthly users by cinquemb on Friday September 04, 2020 @03:49AM (#24372714)
Similar situation (sub $1k/month) to the setup im doing for a start up in indonesia (top 7k in alexa, top 150 in indonesia), except we have to pay extra for media because we need to process the logs (long tail pdf/data/docx hits, and we need to control the dns and how other domains route to use so we cant use cloudflare). And still plenty of room to cost optimize.

Another consultant that came in and try to do this, made our costs go up by 10x per month… so i'm not surprised when I see stuff like this here…

The knowledge of ones tools available at ones finger tips and the relative costs of such seem to make the difference for these things.

Re:Costs of running a Python webapp for 55k monthly users by pembrook on Friday September 04, 2020 @04:03AM (#24372786)
If $171 month is discouraging, let me reassure them.

There’s statistically a 95-99%+ chance you’ll never get to 55k monthly users with your app so don’t worry!

Re:Costs of running a Python webapp for 55k monthly users by zeku on Friday September 04, 2020 @10:41AM (#24375310)
Let's leave this kind of snark out of this community. It's comments like this that slippery slope a community from helpful to harmful. You see it each time a reddit community gets too large.
Re:Costs of running a Python webapp for 55k monthly users by teclordphrack2 on Friday September 04, 2020 @11:57AM (#24376105)
I don't think its snark. Its, don't worry about optimization to soon.
Re:Costs of running a Python webapp for 55k monthly users by runbyfruity on Friday September 04, 2020 @03:03PM (#24377888)
No, what's harmful is "oh, just spend $50,000 on managed Kubernetes to run a Django web app". That costs real time and real money and makes young engineers think that a phpBB forum is impossible with a five-digit AWS bill.
Re:Costs of running a Python webapp for 55k monthly users by fxtentacle on Friday September 04, 2020 @04:18AM (#24372863)
Both you and TekMoi should probably value your own time higher. The cost savings are great, but once you spend 4 hours on configuring a database server, that'll probably be $200+ worth of your time and, thus, wipe out most of the savings.
Re:Costs of running a Python webapp for 55k monthly users by anang on Friday September 04, 2020 @08:09AM (#24374209)
It doesn’t cost anything to spend 4 hours of your time doing anything, so it doesn’t really wipe out any savings. Reducing a bill from $400 month to $200 is real money, not some theoretical time/value judgement.

And, as others have mentioned, there is enormous value in knowing how to operate on a fairly lean tech stack. It makes it so much simpler to scale effectively while keeping costs down.

Re:Costs of running a Python webapp for 55k monthly users by darekkay on Friday September 04, 2020 @06:55PM (#24379719)
This is only true, if you do not value your free time. In your example, you've spent 4h to save 200$, so your work was worth 50$/hour. A freelancer with a 100$/hour rate might do 2 hours of work instead, spend the money, and gain 2 hours of free time.

There are other factors of course, but in general, many people come up with a rate for their own free time (which is often higher than the actual rate they charge clients)

Re:Costs of running a Python webapp for 55k monthly users by anang on Saturday September 05, 2020 @07:08AM (#24382756)
It’s not only true if you don’t your free time. It’s only true if you’re a freelancer that is turning down hours at a higher rate than what you’re saving.

Many people working on products, both on their own and within a company, aren’t turning down other profitable work to optimize existing solutions.

If I watch a two hour movie instead of spending two hours saving $100/month, it doesn’t matter how much I value my time, no one is paying me $100/hour to watch a movie.

Re:Costs of running a Python webapp for 55k monthly users by darekkay on Saturday September 05, 2020 @11:52AM (#24384457)
There's a difference between the initial example and watching a movie. That's what I summed up with "there are other factors (than money)". If I'm only interested in the _outcome_ and I treat the way to achieve it as work, I definitely weight the time cost vs benefit (and I am not a freelancer). If it is something I enjoy doing (which may or may not be true for the initial example), I'll take this into account as well. Time is a limited resource, and I treat it as such.
Re:Costs of running a Python webapp for 55k monthly users by marcus_holmes on Friday September 04, 2020 @05:15AM (#24373206)
Except that now you know how to configure a database server, and know how your database server is configured. So if you ever get a problem with the database in the future, you'll know how to solve it faster. Which will save you time and money in the future.

And you're less likely to make mistakes like upgrading your server instance to try and solve a problem that can't be solved like that.

And the more you do it, the cheaper and faster it gets. That knowledge and skill has value.

Re:Costs of running a Python webapp for 55k monthly users by maxk42 on Friday September 04, 2020 @01:42PM (#24377148)
I value four hours of my time at considerably more than $200 and the reason I'm able to do that is because I know things like how to configure a database server.

But your argument is nonsensical because a one-time investment of time (much less than four hours for me, but I've been doing this for 20 years) can save you several hundred dollars a month. AWS AuroraDB, for instance, (which I also know how to configure, by the way) has much higher latency than a hand-rolled instance and will cause bottlenecks throughout your code in a DB-driven application. If I hadn't experienced the difference firsthand, or had failed to profile my app's performance adequately, I might assume I need to solve the problem by spinning up more ec2 instances to distribute the load. I've had the misfortune of working with a company that had exactly that problem and knowing how to spin up a new DB server saved the company thousands of dollars a month and took considerably less than four hours. Transferring a 3TB database to a new server without downtime did take considerably longer, however, but I was being paid hourly anyway, and it was still a worthwhile investment for the company which saved considerably more than my fee.

Any tradesperson should know their tools. A programmer is no different and if you don't know how to use your tools because your "value your own time higher" then thank you: you're the guy who ends up getting me called in to fix things at a much higher hourly fee.

Re:Costs of running a Python webapp for 55k monthly users by rektide on Friday September 04, 2020 @02:20PM (#24377515)
the main issue I have with the DIY mentality is that, for me, it's endless, and even more so, it's an unpaved path, ad-hoc, with few integrated well defined paths. we've got lots of open source software, but the ops of being online is hard fought experience.

* `apt-get install postgres-server` would have worked fine for my needs on my VPS. oh but i need roles, so let's start an ansible playbook. maybe let's tweak some settings. fine, still all short, easy to do.

* ahhh i should probably have backups. how am i going to manage that storage, where is that going to live?

* then i introduce a new feature & my database is running slow. explain query helps, but i also could use some metrics for these boxes, so probably need to start thinking about prometheus & node-exporter, &c.

i am radically in favor of a) personally facing these challenges and b) open-sourcing the operational knowledge & tools for setting up AND OPERATING systems.

yet at the same time i also think spending $171/mo for a year is an exceedingly wonderful option to have on the table. running my own servers is, to me, a lifelong project, something i want to deeply invest in. there's plenty of ways to go about it that aren't so arduous (k8s+postgres-operator+rook+tbd monitoring+tbd directory-services), but that willingness to keep engaging, supporting, maintaining, scaling things can be a very serious concern that extends well past the time it takes to set a database up: it's an ongoing "giving a shit" burden even when (seemingly) working fine.

being willing and able to hack through is great, and i am all for the coallition of the willing who elect to march through, hopefully not getting bogged down along the way. but wow if you are trying to start a business, it sure is nice being able to pay someone to spin up, back up, monitor, scale some services for you.

i hope some day "we" are better at such things, systematically, i hope open source ops helps give us better paths to doing these kind of things easily, safely, observably, resilliently. we're not there yet. but wow, this challenge to me- how we move open source from an older "software" model to an online service model, that empowers people to set up online systems as easily as opening an editor, that's the challenge at the heart of open source today. it's one that needs a lot more effort, a lot more work, such that we have good ways to stand up & keep up a database server.

Re:Costs of running a Python webapp for 55k monthly users by strokirk on Saturday September 05, 2020 @02:52AM (#24381820)
Where and how did you aquire this knowledge?
Re:Costs of running a Python webapp for 55k monthly users by nix23 on Friday September 04, 2020 @05:09AM (#24373174)
>$200+ worth of your time and

Yeah, from your perspective, for others monthly savings of 10$ is allot, and not everyone earns 200$ for 4 hours of work.

Re:Costs of running a Python webapp for 55k monthly users by fhennig on Friday September 04, 2020 @04:36AM (#24372981)
For OP it might be a good idea though, given that the infrastructure is their biggest cost and they have not revenue.
Re:Costs of running a Python webapp for 55k monthly users by salawat on Friday September 04, 2020 @04:51AM (#24373077)
Being well versed in setting up your own database server bereft of cloud provider hand holding easily pays for initial time investment over time. I don't think most understand just how much a mastery of the basics is capable of generating in value when you're essentially vendor lock-in proof. There is so much blindness to voluntary hanging of one's arose out the window created by vendor overreliance.
Re:Costs of running a Python webapp for 55k monthly users by brendawalsh on Friday September 04, 2020 @06:44AM (#24373739)
Yes, without clear leadership, it is easy for a dev team to flounder around in a cloud provider’s offerings.
Re:Costs of running a Python webapp for 55k monthly users by ramraj07 on Friday September 04, 2020 @03:10AM (#24372498)
It's 50k MONTHLY users. It's just 3000 a day
Re:Costs of running a Python webapp for 55k monthly users by bartread on Friday September 04, 2020 @03:42AM (#24372676)
It says in the article that the author gets 34k daily users, and 50k unique users/month. It would have been clearer if the author had talked about sessions (which are therefore > 1M/mo) for sure, but you're still making a very big (and invalid) assumption.

EDIT: Please disregard the above. I need an eye test, or maybe just to put my glasses on! Daily users are 3.4k (3400), not 34k. My apologies, I take it all back!

Re:Costs of running a Python webapp for 55k monthly users by donatzsky on Friday September 04, 2020 @03:56AM (#24372753)
It's 3.4k (3400) daily users. Not 34k (34000). Dont worry, I nearly missed the dot at first, as well :)
Re:Costs of running a Python webapp for 55k monthly users by bartread on Friday September 04, 2020 @05:39AM (#24373356)
I'm such a klutz - sorry. This is what I get for reading HN when I'm still in bed and without putting my glasses on first. This is a terrible habit that I need to break.
Re:Costs of running a Python webapp for 55k monthly users by tomcam on Friday September 04, 2020 @09:49AM (#24374883)
Username now in question
Re:Costs of running a Python webapp for 55k monthly users by bartread on Friday September 04, 2020 @02:02PM (#24377367)
Tough to argue against that under the circumstances.
Re:Costs of running a Python webapp for 55k monthly users by matt42 on Friday September 04, 2020 @03:38AM (#24372649)
And 2.5 per minute
Re:Costs of running a Python webapp for 55k monthly users by runbyfruity on Friday September 04, 2020 @03:04PM (#24377896)
Or 0 per minute and 25,000 per hour for two days a month. Traffic can be bursty; don't assume that X/month means they're getting exactly X/30 per day..
Re:Costs of running a Python webapp for 55k monthly users by bahularora on Friday September 04, 2020 @07:37AM (#24374023)
What are the right resources, you would suggest someone if he had to setup his servers properly. Will really appreciate if you can refer some books/videos/articles. Thanks.
Re:Costs of running a Python webapp for 55k monthly users by maxk42 on Friday September 04, 2020 @01:50PM (#24377243)
If you're talking about serving many requests cost-effectively, then really the problem is not the servers (except over-provisioning, which is rampant. Learn to use tools like AWS' auto-scaling system instead) - it's the code.

If you understand the basics of algorithmic time complexity (that's your Big-O notation) and profiling your code then you're ahead of 98% of other developers in practice. I'm constantly amazed at how many developers think adding more libraries, newer frameworks, or more layers of tooling will magically speed up their code because "it's so fast". If you actually time things you'll find out doing it the "slow" way is frequently an order of magnitude faster.

Re:Costs of running a Python webapp for 55k monthly users by tomcam on Friday September 04, 2020 @09:50AM (#24374893)
Wow! Congrats, and what is your site? Would love to read more about it.
Re:Costs of running a Python webapp for 55k monthly users by bigiain on Friday September 04, 2020 @03:00AM (#24372446)
To be fair, the post show that about 2/3rds of that spend is from the decision to run twice the needed capacity to be able to do green blue deployments, and to cloud host their metabase analytics.

And it explains there's currently zero revenue.

So it seems fair to judge the situation there based off those pieces of information we've been given.

As I posted elsewhere, the OP's choice to run dual redundant green/blue capable instances and cloud hosted metabase might have good reasons, but right now those reasons are not "wanting a HA solution so revenue isn't impacted"...

Re:Costs of running a Python webapp for 55k monthly users by ianamartin on Friday September 04, 2020 @03:43AM (#24372682)
That's not how green/blue deployments work. You don't keep both colors up unless you have completely failed to understand the concept.

Green/Blue is all about saving resources and costs, not keeping them around. You misread the cause here. It has nothing to do with deployment strategies.

Re:Costs of running a Python webapp for 55k monthly users by bigiain on Friday September 04, 2020 @03:57AM (#24372755)
That's not how I read what the OP's doing in the article. Sure, maybe he's not doing "proper blue/green", but that is what he uses to explain running a duplicated pair of web/app servers full time...
Re:Costs of running a Python webapp for 55k monthly users by yread on Friday September 04, 2020 @03:25AM (#24372583)
I have a web app that's struggling if there are more than 2 concurrent users per CPU core. It's displaying incompressible large resolution images with <100ms latency

EDIT: not sure why I'm downvoted, I'm just presenting my use case. They are multigigabyte images encoded with custom wavelet compression that are cut into tiles (think google earth), each user needs 5-10 tiles every second

Re:Costs of running a Python webapp for 55k monthly users by mping on Friday September 04, 2020 @05:41AM (#24373367)
My guess would be that your webapp is serving images in a blocking fashion, meaning every time a use requests an image it will fetch the image for the user AND block the http serving thread until the image is uploaded. Can you provide more context (eg: tech stack)?
Re:Costs of running a Python webapp for 55k monthly users by yread on Friday September 04, 2020 @06:16AM (#24373579)
What's blocking is number of http connections between browser and server. Most browsers only allow 6, each tile takes about 100ms so getting 10 in under second doesn't always happen.
Re:Costs of running a Python webapp for 55k monthly users by mping on Friday September 04, 2020 @10:11AM (#24375056)
But this itself wouldn't cause the "struggling" you mention with more than 2 concurrent users per core
Re:Costs of running a Python webapp for 55k monthly users by durkie on Friday September 04, 2020 @07:48AM (#24374073)
Do you know if the old open street map trick of having multiple tile servers (that are each just aliases of the same server) still works? I think this was how they tried circumventing the 6 connection limit
Re:Costs of running a Python webapp for 55k monthly users by NavinF on Saturday September 05, 2020 @04:08PM (#24386504)
That's no longer necessary thanks to HTTP/2

Your webserver still has to spin off a thread for each request if you want to do substantial CPU work for each request, but rest assured you'll get all the requests at once from the browser. Not 6 at a time like in the dark ages

The RFC recommends at least 100 streams. See SETTINGS_MAX_CONCURRENT_STREAMS https://tools.ietf.org/html/rfc7540#section-6.5.2

Re:Costs of running a Python webapp for 55k monthly users by brendawalsh on Friday September 04, 2020 @06:48AM (#24373764)
Have you tried combining the tiles on-the-fly as image sprites?

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Images/...

Re:Costs of running a Python webapp for 55k monthly users by csande17 on Friday September 04, 2020 @03:37AM (#24372642)
That's a lot of CPU usage per user! Is it doing some super-intensive process to generate the images on the fly?
Re:Costs of running a Python webapp for 55k monthly users by justinclift on Friday September 04, 2020 @03:46AM (#24372696)
Is it doing anything weird or fancy with those images?

If you're just serving them (eg no image manipulation), that sounds like there's a problem somewhere.

Re:Costs of running a Python webapp for 55k monthly users by matt42 on Friday September 04, 2020 @03:51AM (#24372722)
What http server do you use ? Are they static images ?
Re:Costs of running a Python webapp for 55k monthly users by TekMol on Friday September 04, 2020 @02:36AM (#24372302)
The article does not mention video processing or ML. It describes their setup for what they describe as a generic web app.
Re:Costs of running a Python webapp for 55k monthly users by FrozenSynapse on Friday September 04, 2020 @02:41AM (#24372322)
If you want to provide uninterrupted service to your clients you’ll have to spend some $. You want to have redundancy, machines hosted in different different locations, backup prod servers, monitoring, analysis tools. Even if it is for 1k monthly users, if you want reliability - it will increase the costs.
Re:Costs of running a Python webapp for 55k monthly users by TekMol on Friday September 04, 2020 @02:47AM (#24372350)
I beg to differ.

In my experience, the complicated setups that are justified by the argument of "reliability" have more downtime then a single VPS. The reason is probably that there are more moving parts and more has to be maintained / can go wrong.

These days, a single VPS in the right datacenter has excellent uptime.

Re:Costs of running a Python webapp for 55k monthly users by tristanperry on Friday September 04, 2020 @02:53AM (#24372395)
Agreed. I'll probably be downvoted, but these setups strike me as people who prefer to drink the cool aid than be pragmatic and only use what they need.

I've also had very high reliability rates with a single VPS. They've actually given me less downtime than AWS services at times.

Re:Costs of running a Python webapp for 55k monthly users by bigiain on Friday September 04, 2020 @03:32AM (#24372627)
At work, I aim for four nines. (We put three nines in the legal paperwork).

I can't hit four nines reliably with single VPS platforms on my typical workloads, I need load balancers and redundant app servers. I could quite likely hit three nines using single VPSes. But if a client wants 99.9% SLAs, they'll be paying for HA and I'll deploy redundant ec2 instances, multi region RDS, and an ELB. And charge them 3 or 4 times what the OP is spending for it. (And I'll almost always deliver 99.99% availability.)

For my stuff or friends or people I'm doing cost saving favours for, I'll explain how much extra it costs to guarantee less then an hour of downtime a month, the realistic expectations and historical experience of how much downtime an non-HA platform might have in their use case, and often choose along with them a single VPS (or even dirt cheap cpanel hosting) while understanding and accepting the risks associated with saving upwards of a couple of hundred bucks per month.

Re:Costs of running a Python webapp for 55k monthly users by CapriciousCptl on Friday September 04, 2020 @10:53AM (#24375442)
I think ec2 gives 99.99% availability in their SLA, no need to scale across regions or even AZs. Multi AZ RDS is 99.95%. We have a simple ELB/EC2/RDS/S3 stack on us-east-1 and need high availability for a very small amount of users and run very cheap.
Re:Costs of running a Python webapp for 55k monthly users by karlerss on Friday September 04, 2020 @04:27AM (#24372930)
A single VPS set-up might be OK for serving content over web, but in my experience, the pain begins when your software starts doing async processing - long-running cron jobs, queue processing. If you're doing it on your web server machine, there will be downtime.

I know this, because I have gone through these issues with each of my projects. Just recently an infinite loop bug in a cron job ground my "single VPS" setup to a halt (and took the web server with it).

Re:Costs of running a Python webapp for 55k monthly users by smt88 on Friday September 04, 2020 @02:53AM (#24372402)
I have a VPS that has not gone down in 5 years.

It still has a redundant slave because I'm not going to bet my reputation on everything going right.

Re:Costs of running a Python webapp for 55k monthly users by jmnicolas on Friday September 04, 2020 @08:53AM (#24374446)
Me too, with the cheapest Kimsufi server from OVH (something like 3€ a month).

To be fair I can't be sure because a less than 5 minutes downtime would probably go unnoticed, but the fact is I never hear about this server.

Re:Costs of running a Python webapp for 55k monthly users by httpsterio on Friday September 04, 2020 @03:03AM (#24372462)
> I beg to differ.

> In my experience, the complicated setups that are justified by the argument of "reliability" have more downtime then a single VPS. The reason is probably that there are more moving parts and more has to be maintained / can go wrong.

> These days, a single VPS in the right datacenter has excellent uptime.

Again, maybe in your experience but that's not universal. There's literally no redundancy with running everything off a single VPS and if that datacenter has network or hardware problems, then your service is down.

Is redundancy necessary for the scale of OP's app considering it provides 0 income? Most likely not, but that's a decision they've decided on and there's nothing wrong with that.

What does excellent uptime mean in your book? With Digital Ocean's AM2 region I had regular downtime every few weeks and while I'm alright with it, if I had another VPS in another datacenter it would've had next to no effect on the customer experience. But an hour or more of downtime every two weeks isn't excellent.

Re:Costs of running a Python webapp for 55k monthly users by sweeneyrod on Friday September 04, 2020 @06:38AM (#24373706)
If Digital Ocean is giving you an hour of downtime every two weeks (two 9s and a 7) then they're breaking their SLA (four 9s).
Re:Costs of running a Python webapp for 55k monthly users by TekMol on Friday September 04, 2020 @03:10AM (#24372497)

    What does excellent uptime
    mean in your book?
Something like less then an hour of downtime per year.

Over the last years, across multiple datacenters, I have seen maybe one or two short downtimes per year. None ever lasting more then 5 minutes.

Re:Costs of running a Python webapp for 55k monthly users by FrozenSynapse on Friday September 04, 2020 @04:25AM (#24372905)
https://aws.amazon.com/message/41926/ this lasted hours and affected almost everyone using us-east-1, large portion of internet was unavailable because they had no multi-region setups.
Re:Costs of running a Python webapp for 55k monthly users by TekMol on Friday September 04, 2020 @04:58AM (#24373120)
That was a "S3 Service Disruption". A perfect example of a problem you do not have with a single VPS setup.
Re:Costs of running a Python webapp for 55k monthly users by tristanperry on Friday September 04, 2020 @02:51AM (#24372382)
Two Hetzner CPX31 boxes sounds like it'd do just fine here too, providing the redundancy you mention for a fraction of the cost. Or get the boxes from different companies, for the same sort of overall price.

Yes some of the other tools could arguably be worth paying for, but if the author's concern is that he's short on money and $140 is a lot, why didn't they KISS and only use what they need? Then scale as and when needed in the future.

Y'know, do what HN regularly preaches?

Re:Costs of running a Python webapp for 55k monthly users by bigiain on Friday September 04, 2020 @03:37AM (#24372643)
My guess is he's doing resume engineering.

And $140/month is pretty good value there probably... Even if that's just being able to point potential employers/recruiters at this blog post as evidence of experience building and running an HA website with more-advanced-than-free-Google-Analytics user behaviour tracking.

Re:Costs of running a Python webapp for 55k monthly users by goldcd on Friday September 04, 2020 @04:54AM (#24373090)
I was just thinking along similar lines.

Article mentions in a few places that money could be saved - but lowering the cost doesn't seem to be the driver.

Makes sense to me that if you're building the site as a hobby/practice/demo it makes sense to "build it properly" - and it's fun.

Re:Costs of running a Python webapp for 55k monthly users by bigiain on Friday September 04, 2020 @03:17AM (#24372536)
If your 55k MAU want uninterrupted service, they need to be paying for it (in dollars or monetisable attention and/or privacy).

On a site currently generating zero revenue, I hope the OP is happily enough paying most of that $145/month as a learning experience or for resume bullet points (which are perfectly valid was to spend your money). They've admitted elsewhere in the comments that the two $40/month droplets are way oversized (from an attempt to solve a problem that turned out not to be droplet size/resource related) - so without redundancy and without AWS hosted metabase, this would be about $100/month less expensive to run.

I still think that's over provisioned or under engineered. Like others have commented, I'd be surprised if the features you can see on the site require any more than the $15/month the FAQ claims it costs to run, plus perhaps the $10/month Discus expenses. That seems about where a hobby/side-gig project should sit for a lot of devs before you start thinking about how to make it pay for itself... YMMV, especially if you're not comfortable earning at least junior dev salary already in some reasonably well paying part of the world.