Jump to content

Hacker News - Ask HN: How does Stripe manage IDs?


Neo
 Share

Recommended Posts

I like the way Stripe formats their IDs. It looks like they do identifier, underscore, random string (eg. cus_ja19382 for customers).

Does anyone know if they treat the ids as an opaque string or if they break it up and use the identifier portion too?

Wouldn’t it impact database performance if all your ids for a table start with “cus_”?


Comments URL: https://news.ycombinator.com/item?id=33027419

Points: 3

# Comments: 0

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...