What setting to (ab)use node.js as a super quick polling and ajax server for updating database (similar to Google Spreadsheet approach)

StackOverflow https://stackoverflow.com/questions/23074046

Question

I hope that my title is not too long.

Simple question/title:

What setting should I use to (Ab)Use node.js as a super quick polling and ajax server for updating and double-checking client/server-side changes instantly? --> (similar to Google's approach of dealing with multiple people updating multiple stuff within a particular spreadsheet).

I haven't used node.js yet but did some reading and watching videos in the past and guess it's the (at the moment) right choice for doing what I'm about to do (see title/above).

So think of it as a house I'm trying to build but need the most stable right base which is not gonna break after making the house a whole castle....

So following Code Example:

var http = require('http');
http.createServer(function (req, res) {
    console.log('request received');
}).listen(9000);

Regards the 'http': Is there a 'spdy' or even better parameter i can use to realise the goal of building (potentially) better even than the Google Spreadsheet or at least as good? Asumed my Server is awesome and so on....

Thanks

Norbert

Was it helpful?

Solution

You might look into ShareJS. It handles concurrent editing of plain text and arbitrary json data.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top