I am building system which should be consisted of 3 servers and same Java (Spring mvc) service would be running on all 3 of them. Service will be able to do 3 categories of tasks, i.e. A, B and C.
What I want is to make each service on servers perform only one category while communicating with other server. If one server dies, remaining servers should negotiate and only one of them should take category.
Example: Server 1 - Service does A Server 2 - Service does B Server 3 - Service does C
Server 2 Dies
Server 1 and Server 3 negotiate
Server 1 - Service does A and B Server 3 - Service does C
If server 2 returns to normal state it should take category from Server 1 (A or B)
Is there any pattern, architecture, technology, link that could help me solve this?
Aucun commentaire:
Enregistrer un commentaire