<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Id-Generation on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/id-generation/</link><description>Recent content in Id-Generation on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/id-generation/index.xml" rel="self" type="application/rss+xml"/><item><title>Designing a URL Shortener</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/url-shortener/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/url-shortener/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;a class="heading-anchor" href="#overview" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A URL shortener turns &lt;code&gt;https://example.com/blog/2026/11/a-very-long-article-title?utm_source=newsletter&lt;/code&gt; into &lt;code&gt;https://sho.rt/3Fq9Zk&lt;/code&gt; and redirects visitors from the short URL to the original. It is a classic first system design question because it is small enough to finish, yet touches ID generation, encoding, caching, read-heavy scaling and analytics. It follows the &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/introduction/"&gt;18-step framework&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Unique ID Generation in Distributed Systems</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/unique-id-generation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/unique-id-generation/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Every order, message and post needs a unique ID. On one database, &lt;code&gt;AUTO_INCREMENT&lt;/code&gt; does it. Across many servers and databases, generating IDs that are unique &lt;strong&gt;without coordinating on every request&lt;/strong&gt; is a design problem in its own right — and a common interview question.&lt;/p&gt;</description></item></channel></rss>