Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy one Web application on multiple server?

 
Swerrgy Smith
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to know how we can deploy one Web application on multiple server to share the work between them?
My first thought is that we just deploy the same war file on different servers that connect to the same database. However, what will happen when a user enter something like www.webdomain.com ?
How can multiple servers share the same domain name and how the requests from different users are redirected to these different server?

Any help will be very appreciated!

Thank you very much.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would generally direct the incoming requests to some kind of load balancer that then distributes the requests to the various app servers. Apache httpd is frequently used for that in conjunction with the mod_proxy or mod_jk modules: http://tomcat.apache.org/tomcat-7.0-doc/balancer-howto.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic