A New Algorithmic Design Pattern Based on Biological Mechanisms
Created by Raul E. Jordan / @raulitojordan
Large, modular systems usually rely on many components with complex links between them, and are considerably harder to manage once streams of real time information come into play.
There are two options.
var http = require('http');
var qs = require('querystring');
var concat = require('concat-stream');
var server = http.createServer(function (req, res) {
req.pipe(concat(function (body) {
var params = qs.parse(body.toString());
res.end(JSON.stringify(params) + '\n');
}));
});
server.listen(5005);
To be Continued