Nathan,

Kelly is asking about a mix of both types of routing - External routing
within a reverse-proxy / load-balancer as well as internal routing
within Node's own HTTP service.

That's correct. I think my concerns have pretty well addressed in people's responses. I probably want to use a combination of strategies for setting up routes. For example:

* use a web server as a reverse proxy that routes to node apps running on their own ports,

* use something like vhost or http-node-proxy within a node app that routes to other node apps running on their own ports,

* use something like the ExpressJS router within a node app that routes to modules or sub-apps that run within the same port.

* use something like the ExpressJS router within a node app that routes to different pages of the app.

I don't need to worry so much about the number of ports used by node apps. I didn't hear that any of the routing strategies above would be better or worse when it comes to setting up a production environment for fail-over and load balancing--especially if I use a web server as a reverse proxy. And I didn't hear that any of the routing strategies above would be better or worse for scaling up node apps (e.g., clustering).

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin
Sent: Wednesday, October 14, 2015 7:46 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Hosting a Large Number of Node Apps on the IBM i

I am sure Kelly is talking about the top level routing to the app and
how to handle that as opposed to the question of internal routing to "screens"
within the app.


Kelly is asking about a mix of both types of routing - External routing within a reverse-proxy / load-balancer as well as internal routing within Node's own HTTP service.

How would one configure both so that a broadly-scoped system performs well, scales well, you don't introduce too many HTTP restarts?
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].