cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to generate duplicate ID in load balance environment?

seanl
Champ in-the-making
Champ in-the-making
hi,

Suppose we have two servers which are running the engine and share one database in a load balance environment.    and both of them hit the function 'getNextId' in DbIdGenerator.java at exactly the same time, will it generate duplicate ID?

It's a rare case but still be a possible issue as we use database to generate a 'Unique'  IdBlock for every engine.

Thanks
Sean
2 REPLIES 2

seanl
Champ in-the-making
Champ in-the-making
please help me on this

jbarrez
Star Contributor
Star Contributor
No, a block of ID's is fetched using a transaction on a row in the ACT_GE_PROPERTY table. This works in a multi-node environment.

An alternative to using that id generator, is using an UUID generator.