Short Unique Identifiers

I am developing an HTTP service with a capacity of up to 500 million requests per day (served by more than one independent machine).

For each request, I need to create a unique identifier and return it to the user. The identifier must be 100% unique within 10 minutes. (Preferably 1 day, globally unique identifiers are ideal). No server-to-server communication is required to create this identifier.

Unusual pseudo-seasonal example:

Client: GET / foo

Server: Content-Type: text / xml

        <root>
            <id> ab9d1972-2844-11e0-86b2-000c29544403 </id>
            <other_data />
        </root>

In the previous generation of this HTTP service, I used the UUID.

UUID, : . .

, ? - , , UUID, (10 ).

, C.

: URI GET.

+3
2

. . , .

, - , .

+5

:

  • 500 . ?
  • UUID.
  • HTTP ( ) UUID .
  • , , .
  • UDP?

, ?

+2

Source: https://habr.com/ru/post/1788617/


All Articles