nodeJS and Web APIs
58.9K views | +1 today
Follow
nodeJS and Web APIs
about node.js and Web APIs
Your new post is loading...
Your new post is loading...
Rescooped by Srdjan Strbanovic from JavaScript for Line of Business Applications
Scoop.it!

Horizontally Scaling Node.js and WebSockets with Redis

Horizontally Scaling Node.js and WebSockets with Redis | nodeJS and Web APIs | Scoop.it

The Node.js cluster module is a common method of scaling servers, allowing for the use of all available CPU cores. However, what happens when you must scale to multiple servers or virtual machines?

That is the problem we faced when scaling our newest HTML5 MMORPG. Rather than trying to cluster on a single machine, we wanted to get the benefit of a truly distributed system that can automatically failover and spread the load across multiple servers and even data-centers.


Via Jan Hesse
more...
No comment yet.
Rescooped by Srdjan Strbanovic from Dev Breakthroughs
Scoop.it!

Record audio using webrtc in chrome and speech recognition with websockets

Record audio using webrtc in chrome and speech recognition with websockets | nodeJS and Web APIs | Scoop.it

There are many different web api standards that are turning the web browser into a complete application platform. With websockets we get nice asynchronous communication, various standards allow us access to sensors in laptops and mobile devices and we can even determine how full the battery is. One of the standards I'm really interested in is webrtc. With webrtc we can get real-time audio and video communication between browsers without needing plugins or additional tools. A couple of months ago I wrote about how you can use webrtc to access the webcam and use it for face recognition. At that time, none of the browser allowed you to access the microphone. A couple of months later though, and both the developer version of firefox and developer version of chrome, allow you to access the microphone!


Via Nicolas Weil
more...
No comment yet.
Rescooped by Srdjan Strbanovic from Dev Breakthroughs
Scoop.it!

Face Detection using HTML5, Javascript, Webrtc, Websockets, Jetty and OpenCV

Face Detection using HTML5, Javascript, Webrtc, Websockets, Jetty and OpenCV | nodeJS and Web APIs | Scoop.it

Through HTML5 and the corresponding standards, modern browsers get more standarized features with every release. Most people have heard of websockets that allows you to easily setup a two way communication channel with a server, but one of the specifications that hasn't been getting much coverage is the webrtc specificiation.

 

With the webrtc specification it will become easier to create pure HTML/Javascript real-time video/audio related applications where you can access a user's microphone or webcam and share this data with other peers on the internet. For instance you can create video conferencing software that doesn't require a plugin, create a baby monitor using your mobile phone or more easily facilitate webcasts. All using cross-browser features without the use of a single plugin.


Via Nicolas Weil
more...
No comment yet.
Rescooped by Srdjan Strbanovic from Dev Breakthroughs
Scoop.it!

sipml5 - The world's first HTML5 SIP client

sipml5 - The world's first HTML5 SIP client | nodeJS and Web APIs | Scoop.it

This is the world's first open source HTML5 SIP client (May 12, 2012) entirely written in javascript for integration in social networks (FaceBook, Twitter, Google+), online games, e-commerce sites... No extension, plugin or gateway is needed. The media stack rely on WebRTC.

 

The client can be used to connect to any SIP or IMS network from your preferred browser to make and receive audio/video calls and instant messages.

 

The protocol parsers (SIP, SDP...) are highly optimized using Ragel lookup tables and is suitable for embedded systems with limited memory and low computing power.


Via Nicolas Weil
more...
No comment yet.
Rescooped by Srdjan Strbanovic from Dev Breakthroughs
Scoop.it!

Websockets load-balancing with HAProxy

Websockets load-balancing with HAProxy | nodeJS and Web APIs | Scoop.it
HTTP protocol is connection-less and only the client can request information from a server. In any case, a server can contact a client… HTTP is purely half-duplex. Furthermore, a server can answer only one time to a client request.

Some websites or web applications require the server to update client from time to time. There were a few ways to do so:
- the client request the server at a regular interval to check if there is a new information available
- the client send a request to the server and the server answers as soon as he has an information to provide to the client (also known as long time polling)

But those methods have many drawbacks due to HTTP limitation.
So a new protocol has been designed: websockets, which allows a 2 ways communication (full duplex) between a client and a server, over a single TCP connection. Furthermore, websockets re-use the HTTP connection it was initialized on, which means it uses the standard TCP port.
Via Nicolas Weil
more...
No comment yet.
Rescooped by Srdjan Strbanovic from Dev Breakthroughs
Scoop.it!

HTML5 Web Sockets: A Quantum Leap in Scalability for the Web

HTML5 Web Sockets: A Quantum Leap in Scalability for the Web | nodeJS and Web APIs | Scoop.it

Lately there has been a lot of buzz around HTML5 Web Sockets, which defines a full-duplex communication channel that operates through a single socket over the Web. HTML5 Web Sockets is not just another incremental enhancement to conventional HTTP communications; it represents a colossal advance, especially for real-time, event-driven web applications.

 

HTML5 Web Sockets provides such a dramatic improvement from the old, convoluted "hacks" that are used to simulate a full-duplex connection in a browser that it prompted Google's Ian Hickson—the HTML5 specification lead—to say:

"Reducing kilobytes of data to 2 bytes…and reducing latency from 150ms to 50ms is far more than marginal. In fact, these two factors alone are enough to make Web Sockets seriously interesting to Google."


Let's take a look at how HTML5 Web Sockets can offer such an incredibly dramatic reduction of unnecessary network traffic and latency by comparing it to conventional solutions.


Via Nicolas Weil
more...
No comment yet.
Rescooped by Srdjan Strbanovic from Dev Breakthroughs
Scoop.it!

Implementing Video Conferencing in HTML5

Implementing Video Conferencing in HTML5 | nodeJS and Web APIs | Scoop.it

Here is a guide from @silviapfeiffer to Plugin-free video conferencing in the browser!

 

Websocket server code: http://ow.ly/b5yF7


Via Nicolas Weil
more...
No comment yet.