Since you are not indicating which structure you are using, I am just going to answer this question as a whole.
With Haskell, you do not need to run multiple instances (in a cluster) of a web application, because if the application supports concurrency, it usually uses multiple threads internally. Instead, you should make sure that the application is compiled with the -threaded and -rtsopts . Then, when you start the application, you pass the flags +RTS -N<number of simultaneous threads> . If you are using the Snap web application running on port 1234 on an 8-core Intelยฎ Hyper-Threading computer, for example, you must run it using my-server -p 1234 +RTS -N16 to get it parallelized to 16 threads OS
To demonstrate the web application, you use the same procedure as with node.js. You create an init script that runs the executable in various UNIX modes of operation, and your uncle's bob.
As with any other web application, you can use an external server that redirects traffic to your web application (therefore, you can not use port 80 for your web applications). For more information on how to do this, visit the HaskellWiki Web / Deploy page .
dflemstr
source share