|
If our shop adopts node, we would probably use it to develop web and
mobile apps instead of 5250 green screens (for future development). Over
the years, we have accumulated a large number of 5250 green screen
interactive programs. If we adopt node, I can imagine we will accumulate a
similarly large number of node apps.
The way to host a large number of node apps is, according to my Google
searches, routing. But there are different strategies for routing.
1. Use a reverse proxy to route requests to node apps, where each node app
has its own URI and port number. The reverse proxy could be a web server or
something like node-http-proxy. Redbird also appears to be a package for
setting up a reverse proxy for node apps (
https://github.com/OptimalBits/redbird?utm_source=nodeweekly&utm_medium=email
).
2. Use ExpressJS vhost to route requests to node apps, where each node app
has its own URI and port number.
3. Use ExpressJS routers and module.exports to route requests to node
sub-apps or modules (something like this: https://vimeo.com/56166857).
So, I am left with a few questions. What strategy or combination of
routing strategies would be best for ensuring high availability of node
apps? What strategy or combination of routing strategies would be best for
scaling node apps (e.g., using the cluster module)? Is reducing the number
of unique ports being listened to by node apps a good reason for using the
sub-apps strategy (option #3 above)?
Thanks,
Kelly Cookson
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.