uuid6 / uuid6-ietf-draft

Next Generation UUID Formats
https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/
187 stars 11 forks source link

Timestamp as reserve counter approach - Counter Rollover Handling #107

Closed LiosK closed 2 years ago

LiosK commented 2 years ago

Change Proposal Template

Source (Select one.)

Change Reason (Select all that apply.)

Draft Number, Full Section, Name

Draft 04, Section 6.2. Monotonicity and Counters - Counter Rollover Handling

Current Text:

Counter rollovers SHOULD be handled by the application to avoid sorting issues. The general guidance is that applications that care about absolute monotonicity and sortability SHOULD freeze the counter and wait for the timestamp to advance which ensures monotonicity is not broken.

Proposed Text:

Counter rollovers SHOULD be handled by the application to avoid sorting issues. The general guidance is that applications that care about absolute monotonicity and sortability SHOULD freeze the counter and wait for the timestamp to advance which ensures monotonicity is not broken. Alternatively, implementations MAY increment the timestamp ahead of the actual time and reinitialize the counter if the applications can accept such timestamp alteration.


Other Supporting information below:

60

LiosK commented 2 years ago

https://github.com/uuid6/uuid6-ietf-draft/issues/60#issuecomment-1133868845

Sofya2003 commented 2 years ago

The phrase "if the applications can accept such timestamp alteration" is superfluous.