# Cross-Server

This guide describes how to use CoinsEngine on multiple servers connected to the same MySQL database.

Balance sharing and synchronization depends on the Column_Name and Synchronized currency settings.

# Scenario #1

Currency: money.yml

Same balance on all servers.

  • Server A: Column_Name: money, Synchronized: true, Sync_Interval: 1
  • Server B: Column_Name: money, Synchronized: true, Sync_Interval: 1
  • Server C: Column_Name: money, Synchronized: true, Sync_Interval: 1

# Scenario #2

Currency: money.yml

Different balance on all servers.

  • Server A: Column_Name: money_a, Synchronized: false, Sync_Interval: -1
  • Server B: Column_Name: money_b, Synchronized: false, Sync_Interval: -1
  • Server C: Column_Name: money_c, Synchronized: false, Sync_Interval: -1

# Scenario #3

Currency: gems.yml

Different balance on server A, shared balance on servers B and C.

  • Server A: Column_Name: gems_a, Synchronized: false, Sync_Interval: -1
  • Server B: Column_Name: gems_shared, Synchronized: true, Sync_Interval: 1
  • Server C: Column_Name: gems_shared, Synchronized: true, Sync_Interval: 1