Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

25
Cost of rendering server side templates?
Post Flair (click to view more posts with a particular flair)
Post Body

During an interview, I was asked by my interviewer who wasn't familiar with using Node as a web server (he worked with very niche and old tech). I mentioned that in the project I worked on I use Node.js (Express) as the web server and Handlebars for templates. He asked whether there is a big performance cost to the server when it has to do routing, database calls, etc on top of having to render the pages each time. I've always assumed that it was a negligible cost compared to sending plain HTML since it's essentially just doing string replacements/concatenations beforehand and never gave it much thought, but could anyone explain a bit more about it? I'm aware that the database calls and many other things are done asynchronously, which is why Express is fast, but I'm not too sure about how to answer that question specifically.

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
6,408
Link Karma
1,360
Comment Karma
5,002
Profile updated: 15 hours ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago