Digging through the Activiti sources i tried and failed to unterstand how cluster compatibility is achieved in regards of the default id generator. I need to ensure our setup will not lead to any duplicate primary keys being assigned (currently: 2 servers with 2 workers on each and a shared database (Mysql > 5.6)).
I would be happy if someone could give me a hint how uniqueness is ensured.
The DbIdGenerator is implemented exactly for clustering: each nodes locks a block of ids in the database. If the block is used up, a new block is used.