Lurker News
Back to discussion

Comment by rmdashrfstar

rmdashrfstar3 replies#
Why would I choose server side rendering? If I build the site in vue with the most optimized output settings, append hashes to files for perfect caching, drop the files in an S3 bucket, throw a CloudFront CDN on top of it with gzip compression, and build the front end of my backend as a REST api sitting in a lambda function that serves HTTPS requests, I never have to worry about server costs being more than pennies a month unless I need to add on other services to my backend.
jng2 replies#
Am I the only one to whom this description sounds like some version of hell?
Cyberdog#
Not at all. Poe's Law is definitely in effect for that post.
kls#
Having lived thru the hell of trying to deliver web apps via a thin client model I personally prefer rendering on the client for anything that is not a static web page intended for content only (which now days is rarely the case). Thin clients where an anti-pattern championed by the big server vendors, due to the need for big servers. At the time they where justifying the architecture based on the fact that PC hardware was expensive and thin clients would reduce the need for high end PC's. They where trying to sell it before the web, the web just gave them the vehicle to really push it. Those realities are gone and, decent power in pc's is a commodity. If the web where invented today, it would have been a mesh given the current realities of the proliferation of computing power. Unfortunately it has the law of inertia on it's side.
debaserab21 reply#
Hosting a lambda based REST API is not "pennies a month" if your site gets any significant traffic at all.
diminoten1 reply#
Dimes a month, then? It's not a business-relevant amount of money, is the point.
debaserab27 replies#
Lambda is great for infrequent, high CPU tasks such as batch processing. It isn't ideal for high frequency low CPU tasks like serving web requests. You'll pay a large percentage more doing it this way. Whether that extra expense is relevant to your business depends very much on your scale (or if you're sitting on a boatload of VC cash, I guess).

Continue this thread — 7 replies

collyw#
> Why would I choose server side rendering?

Because you can build a site with around half of the code if you keep it server side.