timestamp
A recorded date and time, usually stored in about eight bytes.
In more detail
Timestamps are useful for display but unsafe as an ordering rule across machines, because clocks disagree. A per conversation sequence number, not a timestamp, is the sort key in the chat design.
Related terms
- clock skew — The difference between the times reported by clocks on different machines.
- wall clock time — The ordinary time of day a machine's clock reports, which can drift or jump.
- sequence number — An increasing number attached to each message so the receiver can detect gaps, reorder messages and say where to resume.
Taught in
- Back Of The Envelope Estimation: Storage And Bandwidth — Scalable System Design & Distributed Architecture
- Replication, Failover And Leader Election — Scalable System Design & Distributed Architecture
- Partitioning, Sharding And Hot Keys — Scalable System Design & Distributed Architecture
- Worked Design Two: A Global Chat System — Scalable System Design & Distributed Architecture
- Worked Design Two: Scaling Chat Fan Out — Scalable System Design & Distributed Architecture