how to write two server programs handling many clients

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyamurugar
    New Member
    • Apr 2010
    • 1

    #1

    how to write two server programs handling many clients

    hi.....

    I wrote one server program handling many clients in java...........

    If the server fails, how to handle the clients....

    I want to write two server programs handling many clients... If one falis, another should act as server.....

    Thanks....
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    There should be some way to detect the the primary is still up or is it down?
    Your secondary server should come up once the primary is down. And the connection with the clients need to be handled now by the secondary(actin g primary).

    When primary is up(acting secondary) you need to start checking whether secondary(actin g primary) is up or down.

    Basically high Availability. Also if you use database, you need to take care of periodic replication of data between servers. :)

    Regards
    Dheeraj Joshi

    Comment

    Working...