DEV Community

Aryan Verma
Aryan Verma

Posted on

Short Unique IDs for dynamoDB?

Hey, so I'm working on a backend where we are using dynamoDB to store tasks, appointments, etc. Currently I'm using UUIDs as the primary key but we also want to display the task or orders IDs to the users on frontend and having a 32-length ID is not really desirable, it's just too big. I wanted to know what all alternative efficient methods are there to generate short random non-clashing or maybe incrementing (like in SQL) IDs. And we're using golang on backend, if that helps.

Top comments (1)

sdeby profile image
Serge Eby

Check Nanoid