Server - Scaling/Multiple instance configuration
SapphireDb supports running in multiple instances. Each instance will synchronize with the other instances using different mechanisms.
Redis cache (recommended)
If you want to scale dynamically you don't know the instances in advance. You therefor need a kind of message broker that distributes changes to all application instances. SapphireDb provides a sync module that uses Redis to achieve this goal.
docker run -it --rm -p 6379:6379 redis:alpine
The connection string for this cache is
Simple sync (Http sync)
If you only have a predefined (and small) number of instances and don't need dynamic scaling you can use this option. SapphireDb will sync changes through a http-interface and send them to all other known instances. You only need a seperate sync configuration for all instances.