# Can several servers share the same balances?

## Answer

Yes. Point every server at the same MySQL, MariaDB or PostgreSQL database in [config.yml](../../configurations/main-configuration.md#database). Every change is written so that two servers changing the same balance at once lose nothing, and a payment another server already spent is refused.

Each server keeps the balances of its online players in memory. Redis is recommended: turn on the [Redis sync](../../features/redis-sync.md) to have the other servers pick up a change straight away. Without it, an offline balance can be up to 30 seconds old on another server, and a change made on a server with nobody online reaches the player's server when they rejoin. No money is created either way. Behind a Velocity proxy, the [Velocity companion](../../features/velocity-proxy.md) does the same for players online elsewhere and shows them their payments straight away. Give each server its own [server name](../../features/worlds-and-servers.md#server-name) if some currencies should only work on some of them.

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/plugin-information/questions-and-answers/can-several-servers-share-balances