|
9 | 9 | "It is often becomes necessary to assign unique identifiers to entities in a database as *surragate primary key* values. There are many schemes for generating such identifiers.\n", |
10 | 10 | "One of the most common approaches in simple cases is an autoincrementing integer field. Most SQL databases support this with built-in features such as `AUTO_INCREMENT` in MySQL or `SERIAL` in PostgreSQL. It's simple and fast.\n", |
11 | 11 | "\n", |
12 | | - "However, autoincrementing ids are not suitable for large distributed systems such as social media platforms (e.g. Instagram). It may be helpful to generate unique identifiers that do not require a database connection or a round-trip to the server.\n", |
13 | | - "\n", |
| 12 | + "However, autoincrementing IDs are not suitable for large distributed systems such as social media platforms or e-commerce websites. It may be helpful to generate unique identifiers that do not require a database connection or a round-trip to the server.\n", |
14 | 13 | "\n", |
15 | 14 | "Reading: \n", |
16 | | - "* Various Unique Identifiers: https://osamadev.medium.com/understanding-unique-identifiers-uid-uuid-guid-cuid-and-nano-id-3ef2d104ecdf\n", |
17 | | - "* UUIDs: https://en.wikipedia.org/wiki/Universally_unique_identifier\n", |
18 | | - "* NANOID: https://github.com/ai-sdk/nanoid-python\n", |
19 | | - "* NANOID Collision Calculator:https://zelark.github.io/nano-id-cc/\n", |
| 15 | + "* Comparing Unique Identifiers: https://osamadev.medium.com/understanding-unique-identifiers-uid-uuid-guid-cuid-and-nano-id-3ef2d104ecdf\n", |
| 16 | + "* **UUIDs**: https://en.wikipedia.org/wiki/Universally_unique_identifier\n", |
| 17 | + "* **NANOID**: https://github.com/ai-sdk/nanoid-python\n", |
| 18 | + "* **NANOID Collision Calculator**:https://zelark.github.io/nano-id-cc/\n", |
20 | 19 | "* Sharding IDs at Instagram: https://instagram-engineering.com/sharding-ids-at-instagram-1cf5a71e5a5c\n", |
21 | | - "* ULID: https://medium.com/@juniooor/ulid-universally-unique-lexicographically-sortable-identifier-5544e3391660\n", |
22 | | - "* ULID: https://github.com/ulid/spec\n", |
23 | | - "\n", |
| 20 | + "ulid-universally-unique-lexicographically-sortable-identifier-5544e3391660\n", |
| 21 | + "* **ULID**: https://github.com/ulid/spec\n", |
| 22 | + "* **ULID**: https://medium.com/@juniooor/\n", |
24 | 23 | "\n", |
25 | 24 | "## Universally Unique Identifiers (UUIDs)\n", |
26 | 25 | "\n", |
|
1465 | 1464 | }, |
1466 | 1465 | { |
1467 | 1466 | "cell_type": "code", |
1468 | | - "execution_count": 49, |
| 1467 | + "execution_count": null, |
1469 | 1468 | "metadata": {}, |
1470 | 1469 | "outputs": [ |
1471 | 1470 | { |
|
0 commit comments