Skip to main content

Jxta to replace hot standby functionality (primary/secondary)?

1 reply [Last post]
Joined: 2005-05-06

My servers currently run in hot standby mode; one is the primary and the other is the secondary. Only two are supported. When the primary dies, the secondary takes over etc. The primary sends all data updates to the secondary so it has its own copy of the data and also to all of the clients.

Do you think Jxta could be used to replace the primary/secondary with multiple pluggable servers? That is, I want to be able to start 5 servers and they will all negotiate resulting in only one as the primary. Data updates are then distributed to the secondaries and the clients using Jxta.

Any thoughts?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-04-19


jxta can provide the basic tools to realize the p2p communication between your servers. I think you could deploy your servers as peers in a jxta network and then use jxta-pipes or jxta-sockets, depending on your data's nature, to transfer data.

As far as I know there is no native support for data redundance in jxta, except for some internal structures, so i guess you will have to provide the algorithm which choose the primary server.

You could try to take a look at jxta projects, maybe there is something helps you.