I need to create a unique, incremental, numeric transaction identifier for each request I make for a specific XML RPC. These numbers should be unique only for my domain, but will be created on several computers.
I really do not want to keep track of this number in the database and engage in row locking, etc. on every single transaction. I tried to crack it with a microsecond timestamp, but there were collisions with only a few threads - my application must support hundreds of threads.
Any ideas would be appreciated.
Edit: what if each transaction id should be larger than the previous request?
source
share