DUXPLIMA Documentation

A network

One house on a shared database, with the sql or redis transport.

For several servers, point every storage block at one MySQL, MariaDB or PostgreSQL database with the same table-prefix, and choose a transport so a window open on one server stops showing a listing somebody bought on another.

network.transportHow
noneOne server
sqlPolls the shared database every poll-every (1s); needs nothing else
redisTells the other servers the moment something changes; needs a Redis server. The driver is in the jar

A message carries no item and no money: it says which row is old news, and the server that reads it goes to the database. A lost message costs a window one refresh.

Key under networkDefaultMeaning
server-name""What this server calls itself; empty makes a new id on every start, which is enough
poll-every"1s"For sql
keep-for"5m"How long a message stays in the table; longer than poll-every
redis.host, port, user, password, database, ssl127.0.0.1, 6379For redis
redis.channel"uxmauction"Two houses on one Redis need two channels

The lock is shared: one command closes every server. storage.local-only = true keeps one server's house apart.

Related: Database, config.conf