I want to have a service that generates unique and monotonically increasing numbers (no other constraints).
The most straightforward way of doing this is to write a value into FDB and use transactions to increment this. However, this will cause contention and having a transaction for this seems to be a bit too heavy weight.
The next idea I have is that one could create a dummy-transaction that wouldn’t write anything and commit that (we could achieve that by adding a non-existing key to the write conflict set). This would give me a versionstamp but it would still require two round trips to FDB (one to get the read version and one for the commit) and the commit is still kind of expensive).
Is there something I am missing? What would be the cheapest way of doing this?