Jake-Moore / SyncEngine

A data storage and synchronization library for Spigot plugins.
MIT License
1 stars 0 forks source link

ServerService Delayed Registration #1

Closed Jake-Moore closed 1 month ago

Jake-Moore commented 4 months ago

When two servers start, the registration of servers is too slow. It could be up to 30 seconds before both servers acknowledge the presence of the other. This creates the risk of a disregarded handshake, i.e.:

Solution (2 Steps):

  1. When a server comes online, we send out a pulse on the group, asking other servers to identify themselves. We deny joins until ~2 seconds after the pulse, to ensure we receive most responses.
  2. We maintain a 5 second keep-alive task that publishes alive status to other servers.

TODO