Hi Everyone,I am a beginner in Node.js. I have been working on some back-end server API that will listen for location information from our client devices and the API will drop a pin on google map that will be rendered in server ( without reloading the page ). We have been discussing about the server capabilities.In our case we are about to handle millions of server requested so we need a concurrent server like Node.js. We have been searching for the optimized way of implementing this in Node.jsNeed clarification on some basic area. Hope the community will clarifies our doubts.Should our server as HTTP server?Coz on client devices does nothing with the responses from the server. It can be avoidable.What will be best suitable server for us like TCP?Shoule we use web-sockets for this?
Share some tutorials that will really help us to understand the node server better. We are happy to learn but we need some one to guide us in right direction. So came here.
app.get('/', function(req, res){
res.render('mymap');
});Thanks Aria,Your response is "clean" and "understandable" and now i can get some clarity from your suggestions.The communication and data flow will mostly be one-directional and we don't need to maintain the connections between client and server. It seems using plan HTTP will be the wise choice.Am just curious about one thing. Hope you can help me with that.I have created a http server that renders a page with google map in it with the help of express and jade modules.app.get('/', function(req, res){
res.render('mymap');
});It is working fine. I can able to view the map and interact with it when access it via (http://my-host-name:IP). Lets say when the server receives further request like ('/location') with location information is it possible to add a new marker/pin on the rendered map ( without re-render / reload the page on server )???
I am using socketCluster on the server with the no of worker equivalent to the no of Core/CPU (i.e) 4 workers in my case
The CPU usage with the htop command in server terminal is 45%
Memory usage was around 4GB / 8GB & swap space not used
The ab command i used to load the server was
ab -n 20000 -c 20000 "http://IP_ADDRESS:8000/API_INFO"when i load test my server with the above command i am getting the below errorapr_socket_recv: Connection reset by peer (104)