Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(urgent) J2ME->Servers : load balacing

 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I developped a J2ME application wich to connect(by HTTP)to one of my N servers.
There are N Servers:You can download the J2ME application(Jar) from one of the N servers.

I would implement a solution to balance the load:
I thought about two solutions:

1-Side client:
The choice of adresse to connect to Servers is random beetwen N adresses:
http://adresse1.com
http://adresse2.com
http://adresse3.com
...

like that the load is balaced beetwen the N Servers

2-Side Server:
My second solution is based on the J2ME application's
page of download:
In this solution the J2ME application doesn't choice beetwen (N Server's addresses)to connect by HTTP.Rather the J2ME application to connect to server where it is downloaded.I suppose that the number of connection is equivalent with the number of the J2ME application's downloads.We fix a maximum number of the J2ME application's downloads. If the number of the J2ME application's download is superior to the fixed value then the client is redirected to another server etc...

Share your experience with me about load balacing.

Thank you

OULD NADIF
 
Ed Schepis
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use Tomcat as web server you could take a look at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/balancer-howto.html
However is a good start point for thinking about load balancing self-made solutions

Ed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic