How to make a distributed node.js application?

前端 未结 4 1601
难免孤独
难免孤独 2021-01-30 01:22

Creating a node.js application is simple enough.

var app = require(\'express\')();
app.get(\'/\',function(req,res){
    res.send(\"Hello world!\");
});
         


        
4条回答
  •  有刺的猬
    2021-01-30 02:04

    I'd recommend to take a look to http://senecajs.org, a microservices toolkit for Node.js. That is a good start point for beginners and to start thinking in "services" instead of monolitic applications.

    Having said that, building distributed applcations is hard, take time to learn, take LOT of time to master it, and usually you will face a lot trade-off between performance, reliability, manteinance, etc.

提交回复
热议问题