Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8477789

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:33:47+00:00 2026-06-10T18:33:47+00:00

I did post this on serverfault, but not getting any views or responses. I’ve

  • 0

I did post this on serverfault, but not getting any views or responses.

I’ve read a bunch of posts on here about whether or not you need a webserver when using Node.js, and the answer always seems to be yes to serve up static files.

My question is this though. If the site I’m working on is mostly dynamic, couldn’t I just use Node.js as the server and the dynamic parts, and then put all the static files (css, js, images, etc) on CloudFront to serve them up? This way I don’t have to worry about caching (through varnish or redis or what have you), or running an http server like nginx and proxying through to get to Node.js (which I’ve read causes problems with socket.io).

Along a similar topic, will Amazon’s ELB suffice as a load balancer or if the site go big enough to need to be load balanced would I need to do something else? Thanks in advance!

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:33:49+00:00Added an answer on June 10, 2026 at 6:33 pm

    I can’t speak explicitly to node.js architecture decisions, but I can address your CloudFront and ELB questions.

    CloudFront is a great CDN for static assets, but there are a few gotchas. As the saying goes, “There are only two hard problems in Computer Science: cache invalidation and naming things.” If you want to replace your static assets with identically-named-but-updated assets, you’ll have to start mucking with cache-control-headers, which determine how long any given CF node caches an asset. There’s little advantage to caching in CF if you set it too low. It’s such a pain, I strongly recommend versioning your assets and setting up your application in such a way as to deploy assets and updated asset references simultaneously. At this time, there is no way to manually expire an object’s caching from CF via an API call or some other method.

    As for ELB scaling: Yes. Use them. Netflix does, and if they can you can, too. The key to ELB use is understanding their role in your application’s traffic: You want them to be highly available, which means maintaining a fleet of webservers in multiple availability zones, and making sure the ELB is properly configured to hit them. In fact, Netflix recently open-sourced their cloud management application called “Asgard”. I suggest checking it out. The linked blog post has a great explanation of ELB use, and Asgard looks like a decent way to manage cloud deployments with zero downtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer my previous post here . I did changes accordingly but getting error.
Since my earlier post did not get any response, I am reposting this. I
I did not want to post this question since there are so many posts
Did my best to not post this question but i just can not figure
First, I did check this post but it is in Python, first, and second
According to this post on how to do query auto-completionsuggestions in lucene getting Did
I was getting ready to post this as a question, but after fiddling around
Did I not get enough sleep or what? This following code var frame=document.getElementById(viewer); frame.width=100;
I did see this post which lead me to the UI/API/1.8/Dialog I'm looking for
I tried posting this to the ServerFault forum, but maybe StackOverflow is the right

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.