0% found this document useful (0 votes)
80 views

Node - Js in The Tech World & Project

This document discusses several Node.js modules and frameworks including the Cluster module for handling concurrency, the Utilities module, ZLIB for compression, and Passport for authentication. It also introduces Meteor for real-time apps, how Node.js is used in robotics projects, and frameworks like Electron and Node-WebKit for building desktop apps with JavaScript. Hands-on labs are included to test clustering and compressing files with Node.js.

Uploaded by

Ashley Martin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Node - Js in The Tech World & Project

This document discusses several Node.js modules and frameworks including the Cluster module for handling concurrency, the Utilities module, ZLIB for compression, and Passport for authentication. It also introduces Meteor for real-time apps, how Node.js is used in robotics projects, and frameworks like Electron and Node-WebKit for building desktop apps with JavaScript. Hands-on labs are included to test clustering and compressing files with Node.js.

Uploaded by

Ashley Martin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Module 9

Node.js in the Tech World &


Project
Agenda

Cluster Module
Utilities Module
ZLIB
Passport
Isomorphic JavaScript over Node.js - an
Introduction to Meteor
Node.js in Robotics
Desktop Application Development using Node.js
Cluster Module -Scenarios

HEAVY SERVER-SIDE COMPUTATION/PROCESSING


Node.js is single-threaded and uses only a single CPU core.
When it comes to adding concurrency on a multi-core server, there
is some work being done.
You can also run several Node.js server instances pretty easily.
With clustering, you should still offload all heavy computation to
background processes.
and having them communicate via a message queue server like
RabbitMQ.
background processing services could be easily distributed out to
separate worker servers without the need to configure the loads of
front-facing web servers.
with Node.js you get that high reqs/sec.
ZLIB

provides bindings to Gzip/Gunzip


Deflate/Inflate, and DeflateRaw/InflateRaw
Compressing or decompressing a file can be done
by piping an fs.ReadStream into a zlib stream.
Compress files before send on the real
communication applications.
Passport

User accounts are a significant part of any non


trivial web app.
Local Authentication using a simple Express 4.x
app and passport.js.
A comprehensive set of strategies support
authentication using a username and
password, Facebook, Twitter, and more
an Introduction to Meteor

realtime synchronization of the client and server.


two users edit the same text fieldlivewithout
writing too much code yourself.
Think Google Docs collaborative editing.
The one framework I always see compared to
Derby.js is called Meteor.
Meteor looks like a pretty interesting option when
creating an app that requires realtime feedback.
updating views live across multiple clients, though
Meteor does it somewhat differently.
Node.js in Robotics

NodeBots
NodeBots is a community of developers and makers that
use JavaScript and Node.js to interface with different
types of open source hardware and software.
NodeBots community has attracted experienced
developers, but also non-programmers too.
Node.js is increasingly becoming the developers
application of choice.
because of Node.js ability to scale and handle petabytes
of data.
use JavaScript to build Robotic and IoT projects
Bocoup (the company behind Johnny-Five) used
nodebots to built robotics source.
Desktop Application Development using Node.js

Electron is a framework for creating native


applications with web technologies like JavaScript,
HTML, and CSS.
Node-WebKit is a combination of Node.js and an
embedded WebKit browser.
The JavaScript code that you write is executed in a
special environment and has access to both
standard browser APIs and Node.js.
For developing applications, you will need to
download the node-webkit executable.
Lab :

Create an application test test Cluster for master


and child worker process.
Create an application to zip the txt file.
summary

Cluster Module
Utilities Module
ZLIB
Passport
Isomorphic JavaScript over Node.js - an
Introduction to Meteor
Node.js in Robotics
Desktop Application Development using Node.js

You might also like