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

Install

Link to this version
ExperimentalReleased 15 January 2019Apache License 2.0
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 7 (0.1.3)
Browser Compatibility
10
11
Install with
Release notes - Version 0.0.3

Vaadin 8 version of version 0.0.2