Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Slacks API uses straight nanoseconds for the IDs of their messages which I always found very curious but figured they must have some sort of way on the backend of resolving collisions.


A message ID only needs to be unique per workspace, in which case you'd expect very few collisions to begin with, and you could even retry on insert failure with a new timestamp. I don't think that would cause significant performance penalties.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: