How are node.js involved on mobile?

I'm currently going to start learning using node.js.

I hope my question is clear - when you talk about node.js and a mobile phone, what do you mean? to a web application developed by node.js, and users come through a simple web browser or a purely mobile application (for example, for android with java), and node.js is somehow involved in this process (how?).

I asked because I saw that Linkedin developed a node.js-based mobile application, but I did not understand where they integrated node.js - in a web application? Android app? iOS app? not clear to me (my guess is a web application, but I'm really confused).

Thanks.

+7
source share
4 answers

NodeJS is a server-side server component that responds to various types of network requests, but most often HTTP requests. In the case of a mobile application, it can be used to interact with the database and interpret JSON HTTP calls, fetch and / or insert data, and return JSON data to the mobile client.

In most cases, iOS, Android, and mobile website clients will connect to NodeJS via HTTP to send GET and POST requests through a variety of APIs.

It is also possible that NodeJS will interact with the various push notification systems available on each platform, or use something like SocketIO to provide real-time communication between the client and server.

+8
source

An article on how LinkedIn uses Node.js technology can be found here:
http://venturebeat.com/2011/08/16/linkedin-node/

The biggest reason for using technology on LinkedIn was because of the speed and use of less resources.

The application on the client side is two to ten times faster than its predecessor, and on the server side - the use of a share of resources, thanks to the switch from Ruby on Rails to Node.js


The new mobile app probably uses a small browser sandbox and native application code.

"It's a battle between HTML5 web applications and native applications, but we are embedding HTML5 in our own application, where web content predominates. What is difficult to do in HTML5 is an endless scroll list, so we went home with that."

and

How our mobile web application works, all of it is displayed on the browser side.

A few reasons to choose LinkedIn Node:

BlockquoteOne reason was massive. Secondly, if you look at Node, then what is best done is to talk to other services.


Hope some of this helps answer your questions.

+5
source

Node.js (Node) is a scalable, event-driven I/O environment built on top of Google Chrome JavaScript runtime—essentially, a server-side implementation of JavaScript. Google V8 actually compiles JavaScript into native machine code prior to execution, resulting in extremely fast runtime performance—something not typically associated with JavaScript. As such, Node enables you to rapidly build network apps that are lightning fast and highly concurrent.

In fact, this means that Node.js is not the new silver bullet platform that will dominate the world of web development. Instead, it is a platform that fills a particular need. And understanding this is absolutely necessary. You definitely do not want to use Node.js for intensive CPU operations; in fact, using it for heavy computing will invalidate almost all of its benefits. Where Node really is is the creation of fast, scalable network applications, because it is capable of handling a huge number of simultaneous connections with high bandwidth, which equates to high scalability.

How it works under the hood is pretty interesting. Compared to traditional web service methods, where each connection (request) creates a new thread, occupying system RAM and, ultimately, maximizing the amount of available RAM, Node.js operates in single-threaded mode using non-blocking I / O calls, allowing support tens of thousands of simultaneous connections

Fast calculation: assuming that each thread potentially has 2 MB of memory with it, running in a system with 8 GB of RAM, we get a theoretical maximum of 4000 simultaneous connections, plus the cost of context switching between threads. This is the scenario that you typically encounter in traditional web service methods. Avoiding all of this, Node.js achieves scalability levels of more than 1M parallel connections

Continue reading .. http://www.toptal.com/nodejs/why-the-hell-would-i-use-node-js

Priority companies rely on Node.js for their mobile solutions.

LinkedIn is an outstanding user. Their entire mobile stack is built on Node.js. They switched from 15 servers with 15 instances on each physical machine, to a total of 4 instances that can handle double traffic!

eBay launched ql.io, a web request language for the HTTP API that uses Node.js as a runtime stack. They were able to set up a regular Ubuntu workstation at the developer level to handle more than 120,000 active connections in the Node.js process, with each connection consuming about 2 KB of memory!

Walmart redesigned its mobile application to use Node.js and transferred its JavaScript processing to the server.

More details: http://www.pixelatingbits.com/a-closer-look-at-mobile-app-development-with-node-js/

+5
source

They reference node.js on the server.

Examples:

  • A task management application with a node.js server server for storing tasks and meetings and crowding out allerts.
  • Chat application with node.js server for routing and message delivery
+1
source

All Articles