I'm sure this is a trivial and common question with regards to DynamoDB but Google or AWS docs didn't help much.
My question is simply:
What is the pattern to generate partition keys?
In an RDBMS, this is pretty straightforward e.g. with Identity columns (MSSQL) or sequences (Postgres). However, when it comes to DynamoDB (I guess this is applicable to any NoSQL database) it's not clear how to generate the partition keys - should it be a GUID or a sequence maintained in the table itself?
Here is an example schema from AWS docs - it uses incrementing numbers as the partition key. But I can't think of a way to generate non-overalapping sequential numbers at application level (as opposed to at a database level that provides atomic transactions which DynamoDB doesn't)