←back to thread

260 points scastiel | 1 comments | | HN request time: 0s | source
Show context
Dachande663 ◴[] No.41879983[source]
I love the idea of this but, given the traffic numbers, this could run on a $4 Digital Ocean droplet and have the same result. They've burnt over a grand just to use vercel. Maybe I'm just older but I don't understand the logic here. A basic VPS, setup once, would have the same result and would be neutral in cost (it's how I run my own little free apps). Maybe the author is lucky enough that $100/mo doesn't really affect them or they're happy for it to pay for the convenience (my assumption).
replies(2): >>41880001 #>>41880047 #
scastiel ◴[] No.41880001[source]
Running a database accessed that many times on a $4 Digital Ocean droplet? I'd be very curious to see that ;)

The web hosting costs basically nothing. Most of the cost comes from the database.

replies(12): >>41880056 #>>41880066 #>>41880076 #>>41880501 #>>41880784 #>>41881017 #>>41881172 #>>41881238 #>>41881868 #>>41882316 #>>41884008 #>>41887515 #
ndriscoll ◴[] No.41880076[source]
6k visits per week * 5 page views per visit is one view per 20 seconds on average. Even very modest hardware with naively written application code should have no problem handling thousands of CRUD database queries per second (assuming every query doesn't need a table scan or something).

Modern computers are mind-bogglingly powerful. An old laptop off eBay can probably handle the load for business needs for all but the very largest corporations.

replies(3): >>41880198 #>>41880307 #>>41880361 #
tmpz22 ◴[] No.41880361{3}[source]
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 user on the other side of the world may have a severely degraded experience.

* Not all traffic is created equal and, especially paired with burst traffic, could have one expensive operation like heavy analytical query from one user cause timeouts for another user.

Vercel does not solve all of these problems, but they are problems that may be exasperated by a $4 droplet.

All said I still highly encourage developers to not sell their soul to a SaaS product that could care less about them and their use case and consider minimal infrastructure and complexity in order to have more success with their projects.

replies(3): >>41880899 #>>41883976 #>>41886671 #
hypeatei ◴[] No.41886671{4}[source]
> may be geographically distributed such that a user on the other side of the world may have a severely degraded experience.

Okay, am I crazy or can you not really solve this without going full on multi-region setup of everything? Maybe your web server is closer to them but database requests are still going back to the "main" region which will have latency.

replies(2): >>41888592 #>>41895696 #
1. sdenton4 ◴[] No.41888592{5}[source]
Personally I'm digging a hole through the center of the earth to send data via pulsing laser to the far side. But other people can choose to waste their money on multi region relocation, sure.