Azure Cosmos DB is designed to provide low latency, elastic scalability of throughput, well-defined semantics for data consistency, and high availability.
The status for the Medical records must be the most recent. This should be the case even if multiple users in different locations update the Medical records records ANSstrong เพราะ most recent แม้ว่าจะมีการแก้พร้อมกัน
The health of a patient needs to be ensured that the data must be either the current version or a prior version ANS bounded staleness เพราะ ไม่ได้ต้องการข้อมูลล่าสุด ก่อนหน้าก็ได้ (prior version) อาจจะมีคุมในแง่ Coding อีกที่ให้สามารถ Write ได้ที่เดียว
When the patient is being discharged (ออกจากโรงพยาบาล), all charges should be processed, and the final bill should be processed ANSeventual เพราะคนได้ยังไงออกจากโรงพยาบาลได้ 1 จุด และเรามีเวลารอ final bill ได้
Discover request units (RUs)
A request unit(RUs) represents the system resources such as CPU, IOPS, and memory that are required to perform the database operations supported by Azure Cosmos DB.
RUs charged Mode
Provisioned throughput mode - ปรับตามการใช้งาน ปกติ 100 RUs per second. โดยเพิ่มลดได้ทีละ 100 RUs
partition key value ข้อมูลของ Field (Update ข้อมูลทับไม่ได้)
partition key ที่ดี
value ไม่ควรเปลี่ยนแปลงบ่อยๆ
มีค่าที่กว้าง (high cardinality)
ต้องกระจาย RUs ไปทั่ว Logical Partition
Note กรณีที่หา partition key เอา item ID ซึ่งเป็น System Property มาใช้แทน แต่ stored procedures or triggers can't run across multiple logical partitions.