Hello,
The LiteSync version 2-beta was just released.
You can download the free binaries for testing on the download page.
Windows users: this version is not passing all tests on this OS. We are trying to discover the problem. It is running apparently stable on Linux and Mac.
It now supports 3 network topologies:
- Star
- Fully-connected peer-to-peer
- Mixed
As it will take a while to update the site on all languages, here are some instructions:
PEER-TO-PEER
The fully-connected peer-to-peer network is made between primary nodes
We need to inform the total number of nodes on the network manually (for now)
The direction of connections must also be informed (which nodes will connect to which)
Here is an example of a network with 3 nodes:
node 1:
"file:db1.db?node=primary&total_primary_nodes=3&bind=tcp://0.0.0.0:1201"
node 2:
"file:db2.db?node=primary&total_primary_nodes=3&bind=tcp://0.0.0.0:1202&connect=tcp://127.0.0.1:1201"
node 3:
"file:db3.db?node=primary&total_primary_nodes=3&bind=tcp://0.0.0.0:1203&connect=tcp://127.0.0.1:1201,tcp://127.0.0.1:1202"
MIXED TOPOLOGY
In this one we have more than one primary nodes connected as peers and many secondary nodes connected to them
The configuration for the primary nodes is the same as above
Each secondary node will be connected to a single primary node at a given time. We can inform the address of many primary nodes so they choose one randomly. If the connection to a primary node drops, it will connect to another one.
Here is an example URI for a secondary node:
"file:db4.db?node=secondary&connect=tcp://127.0.0.1:1201,tcp://127.0.0.1:1202,tcp://127.0.0.1:1203"
If you have any question of if you find a bug, please ask/report here in the forum or by e-mail