I'm trying to understand my options. The ultimate goal is to serve up a webpage that is a interface for the micro-controller. My hitch is I will be viewing live video from a webcam that will be displayed on the interface and I don't want the microcontroller to have to deal with that part of the system. That is my reasoning for two servers. Basically the server running on my desktop will have the muscle to handle the live video and serving the webpage and the controller would receive instructions for the microcontroller (the other server) to carry out. This may be far-fetched but I think it would be the most robust if implemented correctly. Any options or opinions?
On Thursday, March 6, 2014 6:19:16 AM UTC-6, Karl Ostendorf wrote: > > > On 06.03.2014, at 03:59, fm3391 <[email protected] <javascript:>> wrote: > > > I am also running an Apache web server on my PC. The goal is to serve up > a page(s) on the Apache server that can send socket.io messages to the > micro-controller. > > > The first question is do you need Apache? Nginx is preferred and it > supports proxying websocket connections as well. See here > http://nginx.org/en/docs/http/websocket.html > > The second question is do you need a web server at all? It is possible to > create a simple ExpressJS application in node that supports SocketIO (and > websockets) and can server web pages directly. You will need to create a > NodeJS application anyway and can then choose to access it directly or > proxied behind another web server. See here > http://www.williammora.com/2013/03/nodejs-tutorial-building-chatroom-with.html > > > My opinion is that an extra application server as another poster suggested > is not necessary. Passenger can help if you are trying to scale large > applications but as this is a home-hobby project this is not the case. Keep > it simple. > > > Karl Ostendorf > > — > Ostendorf Software > https://ostendorf.com/ > tel: +49 151 1270 4213 > mailto: [email protected] <javascript:> > > > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
