Sandip Subedi
Sandip Subedi

Reputation: 1077

How does stackoverflow creates the unique number for questions?

I was just curious how stackoverflow creates the unique numbers for questions. I am doing something similar and I was curious which way will be better. Are they just using the auto increment on the database or some kind of random unique number generator? What will be the pros and cons of doing those ways ? I totally understand the question is little vague but I am just wanting to know the opinion from experts.

Upvotes: 1

Views: 32

Answers (1)

MacakM
MacakM

Reputation: 1820

In you application you can use GUID: Globally unique identifier.

Upvotes: 1

Related Questions