I am writing a TypeScript-NodeJS application and want to handle object id
s and created_at TIMESTAMP
within the NodeJS application, instead of using MySQL or Cassandra built-in UUID
or TIMESTAMP
generator.
1- First of all I like to know is this a good idea to generate id
and created_at
values within a web server application instead of letting databases generate them?
2- Secondly, I want to know if I use database's built-in functions like uuid()
or toTimestamp(now())
in Cassandra and UUID_TO_BIN(UUID())
in MySQL will this add more overhead/latency to my application compare to using NodeJS uuid() library?