System Design Interview Basics | Unique ID Generator

Поділитися
Вставка
  • Опубліковано 31 січ 2025

КОМЕНТАРІ • 6

  • @ketokittiz8546
    @ketokittiz8546 2 роки тому +1

    Thank you for the video. Could you please tell us more about deduping process? I saw other comment, but I still don't get idea what value will be stored within 24 bits.

  • @braveuser1919
    @braveuser1919 3 роки тому +1

    What happens if NTP winds the clock backwards? How will this process ensure that the IDs generated are still unique if we go backwards in time?

    • @stackunderflow5951
      @stackunderflow5951 2 роки тому

      The answer is, no way. The approach described here is not suitable if strict increment is required.

  • @saulthere6912
    @saulthere6912 3 роки тому +1

    Hi
    What is deduping process?

    • @WorkWithGoogler
      @WorkWithGoogler  3 роки тому +5

      simple piece of code like:
      if (cur_timestamp == prev_timestamp) {
      ++counter; // deduping field
      } else {
      prev_timestamp = cur_timestamp
      }

    • @saulthere6912
      @saulthere6912 3 роки тому

      @@WorkWithGoogler Thank you.