Can AWS DocumentDB have something similar to a hot partitioning issue?

0
  1. Can we have custom ObjectIds for DocumentDB?
  2. If we can have customer ObjectIds for DocumentDB, do we need to keep in mind any possibility of hot key while choosing the objectId?
gefragt vor 2 Jahren209 Aufrufe
1 Antwort
0

1/ I assume that the question is about the _id field. Yes, DocumentDB allows setting custom ObjectId values in this field as long as the values are unique for each document in a collection.

2/ DocumentDB does not partition data. All writes go through the primary instance in the cluster and any primary key can be read from any of the read replicas. You will not have hot keys in the same sense as other products like DynamoDB and S3.

There are other considerations that you should keep in mind to maintain good performance. See https://docs.aws.amazon.com/documentdb/latest/developerguide/best_practices.html

AWS
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen