0% found this document useful (0 votes)
34 views10 pages

Node.js Cluster and Passport Overview

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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views10 pages

Node.js Cluster and Passport Overview

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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Module 9

[Link] in the Tech World &


Project
Agenda

Cluster Module
Utilities Module
ZLIB
Passport
Isomorphic JavaScript over [Link] - an
Introduction to Meteor
[Link] in Robotics
Desktop Application Development using [Link]
Cluster Module -Scenarios

HEAVY SERVER-SIDE COMPUTATION/PROCESSING


[Link] 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 [Link] 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 [Link] 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 [Link] 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 [Link].
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
[Link] 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.
[Link] in Robotics

NodeBots
NodeBots is a community of developers and makers that
use JavaScript and [Link] to interface with different
types of open source hardware and software.
NodeBots community has attracted experienced
developers, but also non-programmers too.
[Link] is increasingly becoming the developers
application of choice.
because of [Link] 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 [Link]

Electron is a framework for creating native


applications with web technologies like JavaScript,
HTML, and CSS.
Node-WebKit is a combination of [Link] 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 [Link].
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 [Link] - an
Introduction to Meteor
[Link] in Robotics
Desktop Application Development using [Link]

You might also like