3 ms·
If you are designing a new site, and you are concerned about performance, I would strongly suggest serving static (read: cacheable for a whole day) files which
by EGreg 16y ago
If you are designing a new site, and you are concerned about performance, I would strongly suggest serving static (read: cacheable for a whole day) files which include javascript which talks to Node on a port. Then, who cares what the port is, as long as it works?
On the other hand, if you are integrating Node with existing code, say PHP, then use TCP sockets behind a firewall, or Unix sockets for communication.