sort key
The field used to order records, such as a sequence number within a conversation.
In more detail
Choosing the sort key decides what order users see; the chat design sorts by sequence and shows the timestamp only for display. In many key-value stores the sort key orders items within one partition.
Related terms
- sequence number — An increasing number attached to each message so the receiver can detect gaps, reorder messages and say where to resume.
- partition key — The DynamoDB attribute whose value decides which storage partition an item lives in, and which every query must name.
Taught in
- Worked Design Two: A Global Chat System — Scalable System Design & Distributed Architecture