× Terms of Use Privacy Policy

Take me back!! I want my CSS!! Click me to get back :)

×

Ready for a job you love?

Join us for a Skillcrush Blueprint to get the skills you need!

Classes start June 6th.

Blueprints start May 2nd!

Node.js

Node.js is a JavaScript framework that makes it possible to use JavaScript for backend development.

Node.js is a JavaScript framework that makes it possible to use JavaScript for backend development.

Once upon a time we told you that there are frontend and backend languages and that JavaScript was a frontend programming language that does all of its work in the browser, right?

Well today we have a new thing to tell you: in the world of the web, things are always cha-cha-changing.

Everything we taught you before is still true, it’s just that now, thanks to Node.js it’s also possible to use JavaScript for backend development.

So why would you want to use JavaScript on the frontend and the backend?

A few reasons. First, simplicity. Why program in two languages when one will do? Second, and more importantly, Node.js is specially designed to make it easy to build data-heavy web applications that will scale well and can work in real-time.

What this means is that web applications built in Node.js are easy to build, can use lots of data (like Facebook), can update in real-time (like Twitter), and can handle lots of users at once. So, when you are featured in a Techcrunch write-up, your Node.js web app won’t crash because it has a special way to handle server requests that make huge traffic spikes no big deal!

So, if you want your web application to do all that, and if you want to use JavaScript for your front and backend code, Node.js is your solution.

Cocktail Party Fact

Thought we were done telling you about all the cool things Node.js can do? Wrong!

Turns out that Node.js is also really great for building web servers, which means making a computer ready to serve as a web server. Why is it so good? Because unlike other web servers, Node.js uses an event-driven model for handling server requests (also called asynchronous input output process or asynchronous I/O), instead of a thread-driven model (also called synchronous I/O or blocking I/O).

The way that Node.js-ers explain what an event-driven model is, is by using the metaphor of a fast food restaurant. If a fast food restaurant used a thread-driven model you would walk up to the counter, place your order with the server, and then wait at the cash register until your food is ready and no one else would be able to order until you had the hamburger in-hand.

Not so efficient, right?

Fortunately, most fast food restaurants use an event-driven model where you go to the register, place your order, pay, and then step aside while you wait for your food so that the next person can order.

As does Node.js!

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

One сomment

  1. PatrickReat Replied

    who sells cheapest airline tickets airport kyiv airport aes tkip mkc airport airfare schemes thomson airways flights to lanzarote airfares launceston to flinders island airports georgia map egyptian airports company cheap air tickets to gangtok cheap airline tickets contact number
    guacamole airlines lp wvu airport delta airlines flights to vancouver united airlines flight routes europe rj flights beirut amman airfare lucknow to goa buy tickets online chennai croatia airlines wroclaw airport flights dhaka to colombo cheap flights gambia airlines logo in the world airport mbta station airport zjsy airport gig
    cheap tickets offers airlines where pets fly free cheap flights ljubljana to prague qantas flights adelaide to melbourne today airfare galway ireland american airlines eagle flight status flight information kansai airport airport information signs flight information regions europe airport fco rome arrivals ucd return date zvartnots airport departures
    hotel reservation service usa search fly bar discount airfare south america cheap tickets usa domestic flights cheap flights tbilisi kiev flight status lufthansa frankfurt to chennai airline cz cheap hawaii tickets airline wvi airport airfare udaipur to delhi flights gdansk to geneva cheap tickets ahmedabad to mumbai

Want more articles like this?

Sign up to get the most recent tech news, tips and career advice.