× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Using Express.JS, would you deploy 500+ HTTP server instances?

You could, or you could create a /routes folder in your application
structure and create a separate file for each "application".

Further info: http://bit.ly/1Na87Ev

Aaron Bartell
litmis.com - Open Source and IBM i. No Limits.


On Wed, Sep 2, 2015 at 8:35 AM, Nathan Andelin <nandelin@xxxxxxxxx> wrote:

The basis of my question is the "Hello World" example at:

http://expressjs.com/starter/hello-world.html

It's just 10 lines of code. One of the relevant statements is:

var app = express();


Which is followed by:

var server = app.listen(3000, function () {


The app.listen() method appears to be instantiating an HTTP services. Is
that to say that each express.js application includes its own HTTP service?

Personally, I tend to scope Web "applications" to handle perhaps 10-15
distinct types of requests. An application for querying and maintaining
Purchase Orders would be distinct from one which queries and maintains Work
Requests, for example. That keeps the code modular.

We have deployed 500+ "applications" of that type of scope.

Using Express.JS, would you deploy 500+ HTTP server instances?
--
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.



As an Amazon Associate we earn from qualifying purchases.

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-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.