<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>UUID on Nalar</title>
    <link>https://nalar.dev/tags/uuid/</link>
    <description>Recent content in UUID on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 08 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/uuid/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Generate Time-Ordered IDs with Python UUIDv7</title>
      <link>https://nalar.dev/generate-time-ordered-ids-with-python-uuid7/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/generate-time-ordered-ids-with-python-uuid7/</guid>
      <description>&lt;p&gt;Random UUIDs are convenient identifiers: they can be generated without coordinating with a database, and the probability of collision is tiny. But a UUIDv4 primary key has one awkward property for ordered indexes: newly generated values are spread across the key space instead of tending toward the end of the index.&lt;/p&gt;&#xA;&lt;p&gt;UUID version 7 keeps the decentralized 128-bit UUID shape while putting a Unix-epoch millisecond timestamp at the front. Python 3.14 adds &lt;code&gt;uuid.uuid7()&lt;/code&gt; to the standard library, so applications no longer need a third-party package just to generate RFC 9562 UUIDv7 values.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Use UUIDv7 for Time-Ordered Identifiers in Python</title>
      <link>https://nalar.dev/use-uuid7-for-time-ordered-identifiers-in-python/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/use-uuid7-for-time-ordered-identifiers-in-python/</guid>
      <description>&lt;p&gt;Python 3.14 added &lt;code&gt;uuid.uuid7()&lt;/code&gt;, giving applications a standard-library way to generate UUID version 7 identifiers defined by RFC 9562.&lt;/p&gt;&#xA;&lt;p&gt;UUIDv7 is useful when an application wants a globally shaped 128-bit identifier while also putting creation time near the front of the identifier. That property can make newly generated values naturally cluster by time in systems that sort UUIDs by their binary or canonical value.&lt;/p&gt;&#xA;&lt;p&gt;It is tempting to summarize UUIDv7 as &amp;ldquo;a sortable UUID.&amp;rdquo; That is directionally useful but incomplete. The timestamp has millisecond resolution, Python adds a counter for monotonicity within a millisecond, clocks can move, and separate processes do not become a distributed sequence generator merely because they all use UUIDv7.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
