failover-vaadin - Vaadin Add-on Directory
Browser-side fail-over
Browser-side failover implementation. If the connection to the primary server is lost, the browser will automatically redirect itself to a fallback/spare server of your choosing.
Advantages:
* No single point of failure
* Incredibly easy setup - just add Maven dependency on this add-on and recompile your widgetset.
* No server-side clustering needed
* Servers are totally independent one from another - you may even use a mixture of server kinds, different versions of application, ...
Disadvantages:
* Session is lost on failover
* If the main server dies, new clients cannot connect.
* If the main server dies and the user presses F5 in the browser, she will just get "Connection Refused". This could perhaps be remedied by offline mode.
Features:
* Supports multiple fallback servers to reconnect to, either in round-robin or random-robin.
* Prior reconnecting the URL is pinged first, whether the spare server is actually alive.
* A simple load-balancer, by selecting a random server from the list instead of always choosing the primary one.
* The user must initiate the failover process manually. This way she will understand that the server has crashed and that she may lose some data (that is, the session).
Future improvements:
* Offline mode of the bootstrap page, which will connect to the spare server even
in case when the primary server is down.
For tutorial, please see [homepage](https://github.com/mvysny/failover-vaadin)
Tutorial
Issue Tracker
Source Code
Youtube Demo Video
failover-vaadin version 0.0.2
Initial release
failover-vaadin version 0.1.0
* Added support for failover to multiple URLs
* The failover now must be launched manually by the user
* Added "Try Spare Servers" and "Cancel" buttons to the reconnect dialog.
* Added bunch of configuration options: ping delay, random robin, infinite
failover-vaadin version 0.1.1
* Fixed: continue with failover on ERR_CONNECTION_REFUSED
failover-vaadin version 0.1.2
- The default ping strategy now requires CORS to be configured in the webapp
- Added second ping strategy (the Image strategy) which does not require CORS configured
- Unsuccessful FailOver now backs off for 3 seconds before trying again
failover-vaadin version 0.1.3
Fixed default widgetset name; tested with Vaadin 8
failover-vaadin version 0.0.3
Vaadin 8 version of version 0.0.2