Abstract

How do organisations store data, move it between machines and keep it consistent at scale, and what does each design give up? Each design buys one property with another: independence from storage layout, correctness under concurrency, cheap scale, write availability, replayability. The price is speed, waiting, stale reads or weaker guarantees, and the same prices decide how fresh a permission check is, how long a log keeps data, and whether a release can be linked to other data. The papers are Codd, Gray, Google’s file system and MapReduce, Dynamo, Spark and Kafka, with work on data quality. Sweeney estimated that ZIP code, birth date and sex made most of the 1990 US population unique (later estimates are lower), k-anonymity has documented attacks, Netflix records were matched to a few known ratings in experiments, and differential privacy bounds how much one person’s data can change a release. Removing names does not make a dataset safe to release.

The question

A data system answers three questions. Where do the bytes live, how do they move between machines, and what may a reader believe about what they read? One machine with one disk removes the problem of coordinating between machines, though concurrency and crashes remain. Thousands of machines, some of which are failing at any moment, force every answer to be a compromise. Each design buys one property with another: independence from storage, correctness under concurrency, cheap scale, write availability or replayability, and the price shows up as speed, waiting, staleness or lost guarantees. The same trades decide how fast a revoked permission takes effect and how long a copied dataset stays copied.

Each paper below frames its own problem: Codd, programs that broke when storage changed and redundant data that drifted out of agreement; Gray, concurrent users and crashes corrupting shared records; Google and Amazon, failure at scale on cheap hardware. Underneath runs a problem none of the systems solve: the data itself is often wrongly shaped, undocumented, or about people.

The security half of the subject follows from the same facts. A dataset that is large, shared and linkable to other datasets is useful for analysis, and it is also what an intruder wants and what a careless release exposes. Re-identification and differential privacy, covered after the systems papers, describe that same data from the other side. The statistical side of drawing conclusions from such data is the subject of a sibling reader, Reasoning from samples.

Codd 1970: the relational model

The complaint about programs

E. F. Codd’s paper “A Relational Model of Data for Large Shared Data Banks” appeared in Communications of the ACM 13(6) in June 1970. Its first sentence states the aim: “Future users of large data banks must be protected from having to know how the data is organized in the machine (the internal representation).”1 The target was the data systems of the time, which gave programmers tree-structured files or “slightly more general network models”. Codd named three dependencies that tied programs to representation.

  • Ordering dependence. Records are stored in one order, often tied to hardware addresses, and programs come to rely on that order. When the stored order must change, they “are likely to fail to operate correctly”.
  • Indexing dependence. An index is, in Codd’s words, “from an informational standpoint” a redundant component of the representation, and it speeds some operations while slowing insertions and deletions. A system needs to create and drop indices as usage changes, and programs should not notice.
  • Access path dependence. If the data must be declared as a tree, a program written for one tree breaks when the tree changes. Codd’s example is parts and projects: either may sit above the other in a hierarchy, and a program that navigates down one hierarchy fails on the other.1

Relations, keys and normal form

Given sets S1 through Sn, a relation on them is a set of n-tuples, so its rows have no inherent order and no duplicates.1

Two kinds of key carry the references between relations. A primary key is a domain, or combination of domains, whose values uniquely identify each tuple. It is nonredundant if no participating domain is superfluous. In Codd’s historical definition, a foreign key is a domain that is not the primary key of its own relation but whose values are values of the primary key of some relation, possibly the same one. In current SQL a foreign key can span several columns and, as in Codd’s own supply example, can be part of the referencing table’s primary key.2 Codd’s own example is a supply relation whose primary key is the combination of supplier, part and project, while each of the three domains separately is a foreign key.1

The “normal form” in this 1970 paper is narrower than the one taught in database courses today. Codd defines it as the elimination of nonsimple domains, that is, domains whose values are themselves relations (a salary history stored inside an employee record, for instance). Normalisation copies the parent’s primary key into each subordinate relation, makes it part of that relation’s key, and strikes the nonsimple domains from the parent. Codd lists the gain: no pointers, no dependence on hash addressing and no indices or ordering lists in the user’s view.1 The stronger normal forms used in practice are not in this paper.

A worked example: three tables and one join

Take three relations.

supplier(sno, sname, city)

snosnamecity
S1AcmeLeeds
S2BorgOslo

part(pno, pname, color)

pnopnamecolor
P1boltgrey
P2nutblack
P3washergrey

supply(sno, pno, qty), primary key (sno, pno), with sno a foreign key into supplier and pno a foreign key into part

snopnoqty
S1P1100
S1P250
S2P170

Question: which suppliers supply a grey part? A program written against these relations does not say how to find the answer. It states the connection: join supply to supplier on sno, join the result to part on pno, keep rows where color is grey, and project sname. Joining supply to part on pno gives rows of (sno, pno, qty, pname, color): (S1, P1, 100, bolt, grey), (S1, P2, 50, nut, black), (S2, P1, 70, bolt, grey). Restricting to grey leaves the first and third rows, and joining those to supplier on sno and projecting sname gives Acme and Borg. The result is {Acme, Borg}, and nothing in the statement mentions order, index or access path.

Now consider why the data is split this way. Suppose everything lived in one wide table supply_wide(sno, sname, city, pno, pname, color, qty). The same three facts would produce three rows, and “Acme is in Leeds” would be stored twice, once for each part Acme supplies. If Acme moves to York and only one row is updated, the table says Acme is in two cities. If the only row for Borg is deleted when Borg stops supplying P1, the fact that Borg is in Oslo disappears with it. Codd’s section on redundancy and consistency supplies the vocabulary. With a set of constraint statements Z and a current value V, a state is “consistent or inconsistent according as V does or does not satisfy Z”.1 The wide table is redundant in a way that lets its state drift out of consistency. The three-table version states each fact once. Hadley Wickham, writing about data analysis, uses the same idea: during tidying “each type of observational unit should be stored in its own table”, which “is closely related to the idea of database normalization, where each fact is expressed in only one place”.3

The connection trap

Suppose each supplier record is linked by pointers to the parts it supplies, and each part record to the projects that use it. A designer concludes that following every path from a supplier through its parts to projects yields all projects the supplier supplies. That is correct only if the supplier-to-project relation happens to equal the composition of the other two, “for all time”. Codd called this the “connection trap” and attributed it to a lack of understanding of relational composition.1

The paper’s honest limit is stated early: “Implementations of systems to support the relational model are not discussed.”1 Codd separates the logical model from its implementation, and the paper makes no performance claim either way.

Transactions: Gray 1981

Atomicity, durability and consistency

Jim Gray’s “The Transaction Concept: Virtues and Limitations” (Tandem Computers technical report 81.3, June 1981, presented at the Seventh International Conference on Very Large Data Bases in September 1981) opens its abstract with a definition: “A transaction is a transformation of state which has the properties of atomicity (all or nothing), durability (effects survive failures) and consistency (a correct transformation).”4 Gray takes the idea from contract law. A system state includes assertions about allowed values, which he calls the system consistency constraints. A transaction groups actions that move a consistent state to another consistent state, and it ends in exactly one of two ways: it commits, or it aborts and none of its effects survive.

He sorts actions into unprotected (temporary files, exempt from undo and redo), protected (ordinary database operations, which must be undoable and redoable) and real (not undoable, such as dispensing cash). Commitment is itself a real action. For an aborted transaction, none of the effects of its protected and real actions are ever visible to other transactions, because those updates are hidden until commit. Once a transaction commits, “its effects can only be altered by running further transactions”, which Gray calls compensating transactions, and he draws the parallel with double-entry bookkeeping, in which one never alters the books and instead makes a new compensating entry.4

The acronym ACID is later. Härder and Reuter’s 1983 survey names four properties, atomicity, consistency, isolation and durability, and calls them “ACID”; isolation means events within a transaction are hidden from concurrent transactions.5 Gray’s abstract does not list isolation as a named property; the paper describes the mechanism and uses the word only in a bibliography title.

Isolation by locking: a lost update

Take an account A holding 100. Transaction T1 deposits 10 and transaction T2 withdraws 30. Executed one after the other in either order, the final balance is 80. Now interleave them with no concurrency control:

  1. T1 reads A and sees 100.
  2. T2 reads A and sees 100.
  3. T1 writes A = 110 and commits.
  4. T2 writes A = 70 and commits.

The balance is 70. T1’s deposit is gone, because T2 computed from a value that was already stale. No individual step was wrong and no crash occurred. The history is not equivalent to any serial execution, which is what serialisability demands: a concurrent execution is serialisable if every transaction observes, and leaves behind, what it would in some one-at-a-time ordering of the same transactions. A matching final balance is not enough to certify that, since two different histories can end in the same number.

Gray describes what prevents the anomaly. If one transaction reads another’s outputs and the other aborts, the first must be undone, which may be impossible if it has already committed. So the updates of a transaction “must be hidden from other transactions until the transaction commits”. To make rereads give consistent answers, “one must also stabilize records which a transaction reads and keep them constant until the transaction commits.”4 The implementation he prefers is locking: lock an object when accessed, and make the requester wait if it is already locked. Read locks are compatible with each other, and an update (exclusive) lock is not compatible with any other lock on the same object.

Apply this to the example. If each transaction takes a read lock on A when it reads, both succeed because read locks are compatible. Each then asks for an exclusive write lock, and each must wait for the other to release its read lock. That is a deadlock. Gray: “If a transaction T waits for a transaction T’ which is waiting for T, both transactions will be stalled forever in deadlock.” The system detects it by timeout or by finding a cycle in the who-waits-for-whom graph, picks a victim, aborts it using the log and frees its locks.4 Suppose T2 is the victim. T1 writes 110 and commits, T2 restarts, reads 110 and writes 80. The final state is 80, the same as a serial run.

Logging, recovery and two-phase commit

Gray’s recovery design for atomicity and durability under failure is a log. He describes a log of undo and redo records written to stable storage, “usually implemented by keeping the records on several non-volatile devices, each with independent failure modes”. Every undoable action leaves an undo record, every redoable action a redo record, and records for one transaction are threaded together so that abort walks them backwards. Commit is signalled by writing a commit record. After a crash the system reconstructs state “from an old state plus the log”.4

When one transaction touches several nodes, each with its own log, the participants must agree on one outcome, commit or abort, even though the commit records may reach the logs at different times. Gray sketches the two-phase commit protocol. A coordinator asks each participant whether it is prepared to commit. A participant that answers yes gives up its right to abort unilaterally. If all agree, the coordinator broadcasts commit, otherwise the transaction aborts.4 A participant that has said yes cannot back out and may block until it hears the decision.

GFS, MapReduce and Bigtable: designing for failure

The Google File System

By 2003 Google’s workloads did not fit the file systems or databases of the day. Ghemawat, Gobioff and Leung, in the paper presented at SOSP in October 2003, list four observations that drove the design.6

  1. “Component failures are the norm rather than the exception.” The system runs on “inexpensive commodity parts”, so monitoring and automatic recovery must be built in.
  2. Files are huge. “Multi-GB files are common.”
  3. Most files are mutated by appending. “Random writes within a file are practically non-existent.” Appending becomes the focus of performance and atomicity guarantees.
  4. Co-designing applications and file system API increases flexibility, so the consistency model can be relaxed.

The architecture follows. A cluster has a single master and many chunkservers. Files are divided into fixed-size chunks of 64 MB, each with an immutable 64-bit handle. Each chunk is replicated, by default on three chunkservers. The master holds the namespace, access control information, the file-to-chunk mapping and chunk locations. Clients ask the master for chunk locations and then talk directly to chunkservers, so that “all data-bearing communication goes directly to” them and the master does not become a data bottleneck. The master’s state changes go to an operation log replicated on remote machines, with periodic checkpoints.6

The consistency model is where GFS gave something up. The paper defines a file region as consistent if all clients always see the same data regardless of which replica they read, and defined if it is consistent and clients see what a mutation wrote in its entirety. A successful write with no concurrent writers leaves the region defined. Concurrent successful writes leave it “undefined but consistent”: all clients see the same bytes, “but it may not reflect what any one mutation has written”, typically mingled fragments. A failed mutation leaves the affected file region inconsistent. For appends GFS offers record append, which writes the record atomically “at least once” at an offset GFS chooses, and may leave padding or duplicate records between. Applications cope with “relying on appends rather than overwrites, checkpointing, and writing self-validating, self-identifying records”.6 Readers must tolerate duplicates and padding between records, using application-level validation and deduplication.

MapReduce: the programming model

Dean and Ghemawat’s MapReduce paper (OSDI 2004) describes the processing model that ran on top of such storage. The user writes two functions. A map function takes a key and value and emits intermediate key-value pairs. A reduce function takes an intermediate key and the list of all values for it and merges them.7

A word count shows the whole flow. Two input documents:

  • d1: to be or not to be
  • d2: to do or not to do

Map. Map reads each document and emits (word, 1) for every word, as in the paper’s own example.

  • d1 emits (to,1) (be,1) (or,1) (not,1) (to,1) (be,1)
  • d2 emits (to,1) (do,1) (or,1) (not,1) (to,1) (do,1)

Shuffle. The paper assigns an intermediate key to one of R reduce partitions with hash(key) mod R. For a hand check, use a toy rule with R = 2: keys starting with a to m go to partition 0, the rest to partition 1. Each reduce worker fetches its partition from every map worker and sorts by key. The grouped input is:

PartitionKeyValues
0be1, 1
0do1, 1
1not1, 1
1or1, 1
1to1, 1, 1, 1

Reduce. Summing each list gives be = 2, do = 2, not = 2, or = 2, to = 4. The counts add to 12, the number of words in the input. A combiner run on each map machine would merge d1’s output locally to (to,2) (be,2) (or,1) (not,1) before the network transfer, so fewer pairs cross the network.7

Fault tolerance by re-execution, and stragglers

The master pings every worker. A worker that does not answer is marked failed, and its in-progress tasks, and also its completed map tasks, return to idle for rescheduling. Completed map tasks are re-run because their output sits on the failed machine’s local disk. Completed reduce tasks are not re-run because their output is in the global file system. In one run, network maintenance made groups of 80 machines unreachable for several minutes and the master “simply re-executed the work done by the unreachable worker machines” and finished. In the word count above, if the machine that mapped d2 dies after finishing, the master re-runs that map elsewhere, and any reducer that has not yet fetched its pairs reads them from the new location.7

The guarantee is conditional. When map and reduce are deterministic functions of their input, the distributed run “produces the same output as would have been produced by a non-faulting sequential execution”. Tasks write to private temporary files, the master ignores a duplicate completion message for a map task, and a reduce worker atomically renames its file to the final name, so the final state holds the output of one execution only. Non-deterministic operators get weaker semantics. The master is a single point of failure, and the implementation aborts the computation if it dies.7

A straggler is a machine that takes unusually long to finish one of the last few tasks. The remedy is a backup task: when an operation is close to completion, the master starts duplicate executions of the remaining tasks, and the task is marked complete when either execution completes; if two reduce attempts both finish, atomic rename leaves the final file with the output of one. This costs a few percent more resources, and the sort benchmark takes 44% longer with it disabled.7

Bigtable

Bigtable (OSDI 2006) put a structured interface on top of GFS. It is “a sparse, distributed, persistent multidimensional sorted map” indexed by row key, column key and timestamp. Reads and writes under one row key are atomic, whatever the number of columns involved, and the paper states that Bigtable “does not currently support general transactions across row keys”.8 The guarantees Gray described stop at the row. A row range, called a tablet, is the unit of distribution and load balancing, and the system stores its files in GFS and coordinates with the Chubby lock service. Its interface has no joins. In the paper’s account, general transactions were initially omitted for lack of an immediate use; later experience showed that most applications needed only single-row transactions, and among requests for distributed transactions the most important use was maintaining secondary indices. The design overall targets thousands of commodity servers.8

Dynamo and the CAP trade-off

Dynamo: a store that stays writable

DeCandia and colleagues describe Dynamo (SOSP, October 2007) as the store behind Amazon services such as the shopping cart, where customers must be able to add items even when parts of the infrastructure are failing. The abstract says it plainly: “To achieve this level of availability, Dynamo sacrifices consistency under certain failure scenarios.”9 The paper states the scope of what it offers. ACID databases “tend to have poor availability” in Amazon’s experience, so Dynamo “does not provide any isolation guarantees and permits only single key updates”. It also states a security assumption that matters later: its operating environment “is assumed to be non-hostile and there are no security related requirements such as authentication and authorization”, and Dynamo “is built for a trusted environment”.9

Consistent hashing. The output range of a hash function is treated as a ring. The example below is a toy with one position per node; Dynamo itself gives each physical node several virtual nodes and keeps a preference list with more than N distinct physical nodes. Each node takes a position, and a key belongs to the first node clockwise from its hash. On a ring of positions 0 to 99 with nodes A at 10, B at 40, C at 70 and D at 90, a key hashing to 55 belongs to C. With N = 3, the copies go to C and the next two nodes clockwise, D and A, the key’s normal replica set; the toy preference list is C, D, A and then B. In this simple ring, the paper’s statement that arrival or departure of a node “only affects its immediate neighbors” concerns ownership; replica placement follows the preference list.9

Quorum arithmetic. A put goes to the N highest-ranked reachable nodes and succeeds when W of them acknowledge. A get queries the same set and returns after R respond. The paper says “setting R and W such that R + W > N yields a quorum-like system”, and that the common configuration is (N, R, W) = (3, 2, 2).9 The overlap follows from counting. Assume fixed membership and a completed write held by at least W nodes; a read that consults R nodes shares at least W + R − N of them with it. With (3, 2, 2) that is at least one node. Overlap proves only intersection. If no conflicting update ran concurrently and the reader picks the newest version, the read returns the latest write; with concurrent updates, Dynamo returns several versions.

Write acknowledged byRead setOverlapRead sees latest write
A, BA, BA, Byes
A, BA, CAyes
A, BB, CByes
A, BC only (R = 1)noneno, stale read

The last row shows why (3, 1, 2) gives no such guarantee.

Sloppy quorum and hinted handoff. A strict quorum cannot complete a write when fewer than W of the designated replicas can acknowledge, so Dynamo uses a “sloppy quorum”: reads and writes go to “the first N healthy nodes from the preference list, which may not always be the first N nodes encountered while walking the consistent hashing ring”. If a node on the list is down for a write, its replica goes to the next healthy node with a hint naming the intended recipient, and that node hands it over when the intended recipient recovers.9 The arithmetic above assumes the same N nodes are always used. Under a sloppy quorum they are not. Take the key at 55 with preference list C, D, A, B. Suppose A is down and C coordinates the write. The coordinator persists locally and counts toward W, so C and an acknowledgement from B, which holds A’s replica with a hint, make W = 2, and the write has not yet reached D. If A recovers before B hands its copy over, and only the first two completed read responses, from A and D, are used (R = 2), neither holds the new value, even though R + W > N. D can receive the write later. This follows from the rules as the paper states them. The paper itself claims eventual consistency, not a quorum guarantee, and says Dynamo “is designed to be an eventually consistent data store; that is all updates reach all replicas eventually”.9

Vector clocks. When replicas can accept writes independently, versions diverge and the system must tell updates that descend from one another from updates made without knowledge of each other. Dynamo attaches a vector clock, a list of (node, counter) pairs, to each version. Node Sx handles a first write, giving D1 with clock [(Sx,1)]. The same node handles an update, giving D2 with [(Sx,2)], which descends from D1 and replaces it. Node Sy updates D2, giving D3 with [(Sx,2),(Sy,1)]. A different client reads D2 and node Sz updates it, giving D4 with [(Sx,2),(Sz,1)]. D3 and D4 each contain a counter the other lacks (Sy:1 against Sz:1), so neither descends from the other, and both are kept for the application to reconcile. A client that reads both and writes a merge through Sx produces D5 with [(Sx,3),(Sy,1),(Sz,1)].9 The reconciliation is the application’s job. For a shopping cart, it takes the union of the carts, with a consequence the paper states: “deleted items can resurface”.

CAP: what is actually proved

Eric Brewer conjectured in a PODC 2000 talk that a web service cannot provide consistency, availability and partition tolerance together. Seth Gilbert and Nancy Lynch proved a formal version, in a note published in SIGACT News in June 2002.10 Their model fixes the meaning of each word, which matters because the popular statement is looser.

  • Consistency is atomic (linearizable) consistency: there is a total order on all operations such that each looks as if it completed at a single instant, as if one node served everything. Any read that begins after a write completes must return that value or a later one.
  • Availability is that every request received by a non-failing node must eventually receive a response. There is no bound on time.
  • Partition tolerance is modelled by letting the network lose arbitrarily many messages between nodes.

Theorem 1 states that in the asynchronous network model, where nodes have no clocks and decide only from messages received and local computation, it is impossible to implement a read/write object that guarantees availability and atomic consistency in all fair executions, including those in which messages are lost. The proof splits the nodes into two non-empty groups G1 and G2, and loses all messages between them. A write of a new value completes in G1, because availability forces it to. A read then starts in G2. To G2 the execution is indistinguishable from one with no write, so the read must return the initial value, contradicting atomicity since the read began after the write completed. Corollary 1.1 extends the result: since an asynchronous algorithm cannot tell a lost message from a delayed one, an algorithm that is available in all fair executions, including those that lose messages, cannot even guarantee atomic consistency in the executions where no message is lost.10

A scenario makes this concrete. Two replicas of a counter x = 0 sit in London and Sydney, and the link between them is cut and stays cut. A client writes x = 1 in London and the write completes. A second client then reads x in Sydney. Sydney can answer 0, which is available but stale, so it gives up consistency. Or it can refuse or wait, which preserves consistency but fails the service’s contract that every request gets a response. Within the model Sydney cannot learn of the write, so there is no third answer.

Giving nodes clocks, in the partially synchronous model, does not remove the impossibility when arbitrary messages may be lost.10 The 2012 survey places the result among the general impossibilities of safety plus liveness in an unreliable system.11

Brewer’s 2012 correction

Brewer’s “CAP Twelve Years Later” (first published in Computer magazine and reprinted by InfoQ on 30 May 2012) states that the “2 of 3” formulation “was always misleading because it tended to oversimplify the tensions among properties”, and that “CAP prohibits only a tiny part of the design space: perfect availability and consistency in the presence of partitions, which are rare.”12 Brewer’s practical discussion gives three reasons the slogan misleads. Partitions are rare, so there is little reason to give up consistency or availability when none exists. The choice can be made many times within a system, per operation or per data item. And in practice consistency and availability come in degrees.

His practical advice is a three-step plan: detect a partition, enter an explicit partition mode that can limit some operations, and run a recovery process afterwards that restores consistency and compensates for mistakes. He also distinguishes the letters: the C in CAP “refers only to single-copy consistency, a strict subset of ACID consistency”, and “serializability requires communication in general and thus fails across partitions”.12 Gilbert and Lynch’s atomic consistency concerns single read/write operations, whereas ACID consistency preserves application invariants and isolation concerns concurrent transactions, so the three are separate ideas.

Spark and resilient distributed datasets

Zaharia and colleagues (NSDI, April 2012) identify the cost of MapReduce jobs sharing data through the file system: “the only way to reuse data between computations (e.g., between two MapReduce jobs) is to write it to an external stable storage system”, which “incurs substantial overheads”.13

A resilient distributed dataset (RDD) is a read-only, partitioned collection that can be built only through coarse-grained transformations such as map, filter and join, which apply one operation to many items. Fault tolerance then comes from logging the transformations, the dataset’s lineage, “rather than the actual data”. In the paper’s log-mining example, a lost cached partition of errors is recomputed from the corresponding partition of lines.13 In distributed shared memory, where programs write arbitrary locations, recovery requires checkpoints and program rollback, according to the paper’s comparison table. RDDs are restricted to bulk writes, and in return only the lost partitions are recomputed, in parallel, although after a wide dependency such as a join a lost partition can need data from many parent partitions. Long lineage chains can be checkpointed.

Spark was “up to 20× faster than Hadoop for iterative applications”. For logistic regression on 100 machines, later iterations ran 25.3 times faster than Hadoop. The first iteration was only moderately faster, since every system read from HDFS in the first iteration.13 The limitation is stated in the paper: RDDs are not suited to “applications that make asynchronous fine-grained updates to shared state, such as a storage system for a web application or an incremental web crawler”. The data that machine-learning pipelines cache this way is the input of the methods in Before deep learning.

The log as a unifying abstraction

Kafka

Kreps, Narkhede and Rao presented Kafka at the NetDB workshop in Athens on 12 June 2011. Their motivation is that activity and operational “log” data is “orders of magnitude larger than the ‘real’ data” and feeds search, recommendations, ad targeting and “security applications that protect against abusive behaviors such as spam or unauthorized data scraping”.14 In the 2011 design each partition of a topic is a logical log of segment files, every publish appends, and a message is addressed by its offset in the log, not by an id. A consumer reads a partition sequentially, pulling from an offset, and in that design the consumer, not the broker, remembers how far it has read. The Kafka design page now describes the consumer position being stored as a message in a topic.15

In the 2011 design two consequences followed. The broker does not know who has read what, so it deletes by time, “typically 7 days”. A consumer can “deliberately rewind back to an old offset and re-consume data”, which the authors say violates the usual contract of a queue but proves essential for fixing consumer errors. The 2011 guarantees were modest. Kafka “only guarantees at-least-once delivery”, exactly-once “typically requires two-phase commits and is not necessary for our applications”, duplicates after a consumer crash are the application’s problem, and “messages from a single partition are delivered to a consumer in order” with no ordering across partitions.14 GFS’s record append is comparable in one respect: the record is written at least once at an offset GFS chooses, with possible padding or duplicate regions. Current Kafka documentation describes transactional exactly-once processing between Kafka topics when configured for it, and says exactly-once delivery to external systems needs their cooperation.15

State machine replication

Jay Kreps’s essay “The Log” (LinkedIn Engineering, 16 December 2013) generalises the pattern. A log is “an append-only, totally-ordered sequence of records ordered by time”, and the position of an entry works as its timestamp. The distributed-systems use rests on what he calls the State Machine Replication Principle: “If two identical, deterministic processes begin in the same state and get the same inputs in the same order, they will produce the same output and end in the same state.”16 The log supplies the “same order”. Tables and logs are dual: a log of changes, applied in order, produces the table, and a table’s updates can be published as a changelog. His analogy is a bank, where the log is the list of credits and debits and the table is the current balances.

That is Gray’s bookkeeping rule from 1981, “one never alters the books”, carried across machines. Apply it to the lost-update example: the log -30, +10, applied in order to a balance of 100, gives 80 on every replica. Replicas can differ in how far they have read, so the CAP trade-off reappears in the choice of what to wait for. The log also keeps data: a seven-day window is a setting, and a log with no deletion makes erasing a person’s records a design problem. The sources here do not discuss erasure, so that point is an inference from the append-only property.

Data quality and documentation

Tidy data

The least glamorous part of data engineering is the shape and meaning of the data itself. Wickham’s “Tidy Data” (Journal of Statistical Software 59(10), August 2014) opens with an informal saying, not a measured rate: “that 80% of data analysis is spent on the process of cleaning and preparing the data”, attributed to Dasu and Johnson (2003). It gives three rules for a tidy dataset.3

  1. Each variable forms a column.
  2. Each observation forms a row.
  3. Each type of observational unit forms a table.

Wickham states that this “is Codd’s 3rd normal form (Codd 1990), but with the constraints framed in statistical language”, with the focus on a single dataset. That is an analogy across contexts: the three rules do not test functional dependencies. He lists five common ways data is messy, among them “column headers are values, not variable names” and “multiple types of observational units are stored in the same table”. A small case of the first: failed-login counts with columns host, mon, tue have days as column names. The tidy version has columns host, day, failures.3

Technical debt in data pipelines

Sculley and colleagues at Google (“Hidden Technical Debt in Machine Learning Systems”, NIPS 2015) argue that ML systems have all the maintenance problems of traditional code “plus an additional set of ML-specific issues”, and that the debt lives at the system level.17 Several of their categories are data engineering problems.

  • Entanglement. “Changing Anything Changes Everything”: altering one input’s distribution can change how all the others are used.
  • Unstable data dependencies. An input signal produced by another team or model can change at any time, and even “improvements” can harm the consumer.
  • Undeclared consumers. Outputs used by systems nobody listed make changes dangerous.
  • Glue code and pipeline jungles. A mature system “might end up being (at most) 5% machine learning code and (at least) 95% glue code”, the authors’ illustrative estimate, and data preparation can become “a jungle of scrapes, joins, and sampling steps, often with intermediate files output”.

The paper’s remark that data dependencies “carry a similar capacity for building debt” to code dependencies, “but may be more difficult to detect”, because compilers and linkers do not check them, explains why dataset inventories matter for security too.17

Datasheets for datasets

Gebru and colleagues propose that every dataset carry a datasheet, by analogy with electronic components. The questions follow the dataset lifecycle in seven groups: motivation, composition, collection process, preprocessing/cleaning/labeling, uses, distribution and maintenance. Several questions bear directly on release risk: whether the data contains confidential material, whether the dataset identifies any subpopulations, and whether “it is possible to identify individuals ... either directly or indirectly (i.e., in combination with other data)”. The collection questions ask whether the individuals consented and whether they can revoke consent.18

Why removing names does not anonymise

Sweeney and k-anonymity

Latanya Sweeney’s “k-anonymity: a model for protecting privacy” begins from a practice: organisations release person-specific data “with all explicit identifiers, such as name, address and telephone number, removed on the assumption that anonymity is maintained because the resulting data look anonymous”.19 She reports two linking results. The first, from “an earlier work” on 1990 U.S. Census summary data, is an estimate: 87% (216 million of 248 million) of the U.S. population had reported characteristics that likely made them unique on {5-digit ZIP, gender, date of birth}.19 Uniqueness is not linkage, since naming a person also needs an outside list carrying the same attributes. Golle later estimated 61% for 1990 and 63% for 2000 and said he could offer no definite explanation for the gap from 87%.20 Sweeney’s 2002 paper cites the earlier work as working paper LIDAP-WP4, while the public 2000 paper “Simple Demographics Often Identify People Uniquely” calls itself Working Paper 3 and gives the same 87% figure.21 Whether the two are the same document is unclear.

The second is a case. The Massachusetts Group Insurance Commission gave researchers, and sold to industry, hospital data on about 135,000 state employees and their families, believing it anonymous. Sweeney bought the Cambridge voter registration list for twenty dollars. It had name, address, ZIP, birth date and sex. In Cambridge, “six people had his particular birth date; only three of them were men; and, he was the only one in his 5-digit ZIP code”: Governor William Weld’s medical records were in the file.19

Her protection model is built on a quasi-identifier, a set of attributes in the released table that can be linked to outside data. The definition: a table satisfies k-anonymity if each sequence of values of the quasi-identifier “appears with at least k occurrences” in the table. The count is of released records, so each person is indistinguishable from at least k−1 others only if each record is a distinct person. The methods are generalisation, replacing values with broader ones, and suppression, removing them. She states an assumption: the data holder can accurately identify the quasi-identifier, and she notes that policies, laws and contracts can complement the technical protection.19

A five-row example and its homogeneity attack

Five hospital rows, names removed. The quasi-identifier is (ZIP, age) and the sensitive attribute is the diagnosis.

ZIPAgeDiagnosis
1305328Cancer
1306829Cancer
1305334Flu
1306836Heart disease
1305338Flu

Every (ZIP, age) pair is unique, so the table is only 1-anonymous. Generalise ZIP to its first three digits and age to a decade:

ZIPAgeDiagnosis
130**20 to 29Cancer
130**20 to 29Cancer
130**30 to 39Flu
130**30 to 39Heart disease
130**30 to 39Flu

The groups have sizes 2 and 3, so the table is 2-anonymous and not 3-anonymous. Suppose a neighbour knows that Bob is 28, lives in 13053 and is in the release. Bob’s row must be in the first group, and both rows say Cancer, so his diagnosis is revealed although his row is not identified.

This is the homogeneity attack from Machanavajjhala, Gehrke, Kifer and Venkitasubramaniam’s ℓ-diversity paper (ICDE 2006). Their version has a 4-anonymous hospital table in which every record in the neighbour’s group has the same condition. They add a background knowledge attack: an attacker who knows that a person from a given group has a very low incidence of heart disease concludes “with near certainty”, in the paper’s words, that the person has a viral infection. In the five-row table, an attacker who knows the target is in the second group and has not had flu concludes Heart disease. The authors give a back-of-the-envelope estimate, a toy expectation that assumes equal sensitive-value probabilities, independent draws and groups of exactly five; they note that real data are skewed. With 60,000 tuples, a sensitive attribute with 3 values uncorrelated with the others, and a 5-anonymisation, there are about 12,000 groups. A group lacks diversity with probability 1 in 81 (that is 3 × (1/3)^5), giving about 148 groups and about 740 people exposed to a homogeneity attack.22 The remedy proposed, ℓ-diversity, requires at least ℓ “well represented” values of the sensitive attribute in every group, and the paper concedes that the principle “does not clearly state what ‘well represented’ means” before supplying formal variants such as entropy and recursive ℓ-diversity (section 4). Separately, it says that a remark that Bob does not have diabetes lies outside its section 3 probabilistic model, while section 4 treats such instance-level knowledge as eliminating a possible sensitive value, and it shows that a block that is diverse in each of two sensitive attributes separately can still be broken by one piece of information.

Sweeney’s paper also lists release-related attacks: unsorted matching, complementary release, and a temporal attack that combines successive releases from a changing table.19

The Netflix Prize dataset

Narayanan and Shmatikov’s Netflix paper (the longer arXiv version, revised 22 November 2007, which is the source of the figures here; a shorter version appeared at the IEEE Symposium on Security and Privacy, 2008) moves the argument from demographic tables to sparse, high-dimensional records. Netflix released 100,480,507 ratings by 480,189 subscribers, made between December 1999 and December 2005, for its Netflix Prize announced on 2 October 2006. Netflix’s FAQ, as reproduced by the researchers, told contestants: “No, all customer identifying information has been removed; all that remains are ratings and dates.”23

The authors observe that such records are sparse: for most records there is not a single similar record in the entire dataset, and there is no fixed split into quasi-identifiers and sensitive attributes, since any attribute can serve as identifying for one person. Their algorithm accepts a match only if the best-scoring record stands out from the second-best by an “eccentricity” threshold. The headline numbers are experimental results in which the adversary’s auxiliary information was sampled from the released records (arXiv v2, section 5):23

  • With 8 movie ratings, of which 2 may be completely wrong, and dates that may be wrong by 14 days, 99% of records are uniquely identified.
  • For 68% of records, 2 ratings and dates with a 3-day error are enough.
  • For the other 32% in the 2-rating case, the estimated remaining entropy is about 3 bits, against 19 bits with no auxiliary information. As a check, 2^19 is 524,288, about the number of records.

Using the Internet Movie Database as a source of background knowledge, and a deliberately small sample of a few dozen IMDb users (kept small to comply with IMDb’s terms of service), the algorithm found two Netflix records with eccentricities of about 28 and 15, which the authors call “an exceptionally strong match”; for nearly all other users tested the eccentricity was at most 2. The authors had no oracle to confirm the matches and call the result a proof of concept that implies nothing about the share of IMDb users identifiable in the Netflix data. The apparent political preferences their abstract mentions are their reading of the matched records.23

Differential privacy

Dwork, McSherry, Nissim and Smith, “Calibrating Noise to Sensitivity in Private Data Analysis” (2006), start from a trusted server that holds a database and answers a query function f by returning the true answer plus random noise. Their Definition 1 calls a mechanism ε-indistinguishable if for every pair of databases x and x’ that differ in only one entry, every adversary and every transcript t, | ln( Pr[T(x) = t] / Pr[T(x') = t] ) | ≤ ε, with the absolute value taking both orderings and probability-density notation standing in for probabilities when transcripts are continuous. The parameter ε “is a parameter chosen by policy”. Their Definition 2 gives the L1 sensitivity S(f) as the smallest number such that ‖f(x) − f(x’)‖₁ ≤ S(f) for every pair of databases that differ in one entry (the absolute value in the scalar case). Adjacent databases here have the same size and differ in one entry, whereas Dwork and Roth’s monograph counts the addition or deletion of one individual. It is a property of f, not of the data. The mechanism adds noise drawn from the Laplace distribution with scale S(f)/ε.24 They note that the formulation gives indistinguishability “against an adversary with any amount of prior knowledge”.

Dwork and Roth’s monograph states the form now standard. A randomised algorithm M is (ε, δ)-differentially private if for all sets S of outputs and all databases x, y whose count vectors differ by at most one (the addition or removal of one record’s contribution), Pr[M(x) ∈ S] ≤ exp(ε) × Pr[M(y) ∈ S] + δ. With δ = 0 this is the pure ε version. The Laplace distribution with scale b has density (1/(2b)) exp(−|x|/b) and variance 2b², and the Laplace mechanism adds independent Lap(Δf/ε) noise to each coordinate of the answer.25

A count query. A table of 1,000 patients, one row per person (a person with several rows would need a bound on contributions), has 42 with diagnosis X, and a researcher asks for the count. Adding or removing one person changes a count by at most 1, so the sensitivity is 1 and the noise scale is 1/ε.

  • With ε = 0.5 the scale is 2 and the noise density is 0.25 × exp(−|y|/2). The released value is 42 + Y. For the neighbouring true count 43, the density ratio at any released value v is exp((|v−43| − |v−42|)/2), at most exp(0.5), about 1.65. The mean absolute error is 2. The chance that the noise exceeds 4 in absolute value is exp(−2), about 13.5%, and exceeding 6 is exp(−3), about 5%.
  • With ε = 0.1 the scale is 10. The mean absolute error is 10, and the chance of an error above 10 is exp(−1), about 37%.

Smaller ε means stronger protection and a noisier answer. The noise does not depend on the size of the database, so the same noise that badly distorts a count of 42 is negligible against a count of 40,000. Two further properties matter. Releases compose: the combination of an ε1 and an ε2 mechanism run with independent randomness is (ε1 + ε2)-private, so basic composition gives an upper bound of 5 for ten independent count queries at ε = 0.5. And differential privacy is immune to post-processing, so a function of the private output, computed without fresh access to the underlying data, cannot make it less private.25

The 2020 US Census

The Census Bureau’s disclosure avoidance work shows the argument at national scale. A 2023 technical report on a simulated attack on the 2010 Census states that the 2010 census published more than 150 billion aggregate statistics in 180 table sets. Using only 34 of the table sets, the authors reconstructed microdata records with census block, sex, age, race and ethnicity, and could verify that all records in 70% of census blocks, 97 million people, were perfectly reconstructed.26 Tables of counts, the report says, are not inherently less disclosive than the records behind them.

The Bureau’s handbook of November 2021 describes the 2020 approach. A privacy-loss budget sets the noise: “as the privacy-loss budget rises, noise decreases”, and so does protection. Some counts are invariants released without noise in the 2020 redistricting products (state population totals, housing units per block, and occupied group-quarters facilities by major type per block); they sit outside the stated budget, which the handbook describes as an infinite budget for those statistics. The method is zero-concentrated differential privacy with a discrete Gaussian distribution. For the persons file, Appendix A supplies ρ = 2.56 and δ = 10^-10, and the Bureau’s announcement of 9 June 2021 confirms ε = 17.14.27 28

The Bureau’s page on differential privacy carries a notice that its information “is no longer current”.29 On 17 August 2026 the Bureau’s acting director wrote that the Department of Commerce had issued Department Administrative Order 216-26 in June, which no longer allows noise infusion, the method the Bureau had used for the 2020 Census, in covered new Bureau statistical products; coarsening is preferred and suppression a last resort. Published products such as the 2020 Census stand, and some research outputs and already-noised internal microdata fall outside the order’s reach. The Bureau’s stated priority is accurate statistics, and it expects reduced detail for some small areas and populations. A demonstration product for the 2030 Census was planned, as of that post, for mid-2027.30

Exposed storage, and where consistency choices become security bugs

Large shared datasets also leak through ordinary mistakes. In 2023, researchers at Wiz found that a Microsoft AI research repository on GitHub pointed readers to an Azure Storage URL carrying a Shared Access Signature (SAS) token. The token covered the whole storage account, granted full control instead of read-only, and, according to Wiz, was valid until 2051. Wiz reports that the account held private data, including workstation backups and more than 30,000 internal Teams messages.31 Microsoft’s Security Response Center confirms the core facts in its post of 18 September 2023: Wiz reported on 22 June 2023, the token was revoked on 24 June, “no customer data was exposed”, and Microsoft’s own scanner had flagged the URL and the finding was “incorrectly marked as a false positive”.32 The account was private, and a signed link made it reachable. Microsoft’s documentation says the generation of SAS tokens cannot be audited,33 and Wiz says 38 terabytes were accessible; neither Wiz nor Microsoft says how much, if any, was copied. The exposure was detectable from outside, and Microsoft’s scanner flagged the URL but marked it a false positive. Leaked datasets then circulate and are reused, as in Billions of leaked passwords.

Stale reads and revoked permissions

Google’s Zanzibar authorisation system (USENIX ATC, July 2019) is a source on this. Its authors describe the “new enemy” problem, which arises when “we fail to respect the ordering between ACL updates or when we apply old ACLs to new content”.34 In one example Alice removes Bob from a document’s access list and then asks Charlie to add new content. Bob “should not be able to see the new contents, but may do so if the ACL check is evaluated with a stale ACL from before Bob’s removal”. Zanzibar’s answer is external consistency, so that causally ordered updates get ordered timestamps, plus snapshot reads with bounded staleness. When a content change is saved, the client obtains an opaque token, a zookie, that encodes a current timestamp later than all prior ACL writes, and stores it with the content. Later checks send the zookie, which sets a minimum snapshot freshness for that check. Checks sent without one are served at a default staleness, so not every check observes a revocation immediately.34

The Dynamo paper does not discuss authorisation, so what follows is reasoning from the quorum rules, not a documented incident. Suppose a (3, 2, 2) store holds an access list, membership is fixed, and a revocation write has completed on two nodes. A read at R = 2 shares a node with that write and, if it picks the newest version and no conflicting update ran concurrently, sees the revocation. A read at R = 1 may hit the third node and still grant access until replication catches up, and under a sloppy quorum even R = 2 can miss the revocation, as the earlier arithmetic showed. Revocation, deletion and permission changes are the operations where staleness has a security meaning, and they deserve a fresh check or a minimum read freshness, as Zanzibar’s zookie provides. Raising R alone gives no such guarantee under a sloppy quorum.

Practical guidance

Before releasing or sharing a dataset:

  1. Start from a conservative threat model: assume every attribute appears in some dataset the recipient could hold (voter list, phonebook, public ratings), as in Sweeney’s linking attack.19 Then rank attributes by how plausibly each recipient can link them, since linkability differs by recipient.
  2. Ask whether a smaller or coarser release meets the purpose, then assess disclosure across all releases taken together: the Census reconstruction showed that tables of counts can disclose the records behind them.
  3. Measure the number of rows unique on the quasi-identifier, the smallest group size k, and the distinct sensitive values per group.
  4. Where a k-anonymity release model is used, check group sizes and also diversity, noting that counting distinct sensitive values is weaker than testing entropy or recursive diversity. Do not rely on generalisation for sparse, high-dimensional data such as ratings, locations or transactions.
  5. Keep a ledger of every release, because complementary and temporal attacks combine tables and track cumulative differential privacy loss for overlapping participants under the chosen adjacency and accounting method.
  6. Fill in a datasheet, in particular the questions on identifiability, confidentiality and consent.18
  7. Restrict by contract and access control as well as by technique.

For logging and minimisation, keep an inventory of who consumes each dataset, since undeclared consumers are one of Sculley’s named debts, and log exports of whole tables. Treat retention as a design parameter, and prefer short-lived, narrowly scoped sharing credentials, since a SAS token cannot be audited at generation.33 Collect only what the purpose needs, the argument developed for identity data in Proving Your Age Without Proving Who You Are.

Annotated reference list

Each DOI links to its Crossref record.35

Conclusion

Brewer’s later argument is that the consistency choice should be made per operation, with a plan for partitions and recovery. GFS and MapReduce gave file-region semantics and sequential-equivalent output for deterministic operators, with weaker semantics for nondeterministic ones.

The same data has a security reading. Sweeney’s linking result, the l-diversity attacks and the Netflix numbers show that a table needs no names for re-identification to be plausible, and that in the Netflix experiments a few correlated attributes sufficed for sparse records. Differential privacy bounds how much one person’s data can change the output distribution, under a stated adjacency and parameters, and charges a visible price in accuracy. The Census example shows differentially private noise infusion deployed in 2020 and barred in covered new products by a 2026 order, with the Bureau weighing accuracy against detail. Placement, replication and retention choices carry the same risk: a sloppy quorum can serve a stale permission, a log keeps what a release exposes, and a shared link outlives the decision to share. The working questions for a practitioner are who can link this dataset to another, what the recipient needs, how the release can be measured, what is logged and kept, and whether the consistency settings of the store match the cost of a stale permission.

Footnotes

  1. E. F. Codd, “A Relational Model of Data for Large Shared Data Banks”, Communications of the ACM 13(6), June 1970, pp. 377-387. https://www.seas.upenn.edu/~zives/03f/cis550/codd.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  2. PostgreSQL documentation, “Foreign Keys”: a foreign key constraint specifies that the values in a column “(or a group of columns)” must match values in a row of another table. https://www.postgresql.org/docs/18/ddl-constraints.html (opens in a new tab) ↩
  3. Hadley Wickham, “Tidy Data”, Journal of Statistical Software 59(10), August 2014. https://www.jstatsoft.org/index.php/jss/article/view/v059i10/v59i10.pdf (opens in a new tab) ↩1 ↩2 ↩3
  4. Jim Gray, “The Transaction Concept: Virtues and Limitations”, Tandem Computers Technical Report 81.3, June 1981, appeared in Proceedings of the Seventh International Conference on Very Large Data Bases, September 1981. https://jimgray.azurewebsites.net/papers/thetransactionconcept.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  5. Theo Haerder and Andreas Reuter, “Principles of Transaction-Oriented Database Recovery”, ACM Computing Surveys 15(4), December 1983, section 1.1 (isolation and the ACID acronym). https://www.cs.cmu.edu/~dga/15-712/F07/papers/haerder83.pdf (opens in a new tab) ↩
  6. Sanjay Ghemawat, Howard Gobioff and Shun-Tak Leung, “The Google File System”, SOSP ‘03, Bolton Landing, New York, 19-22 October 2003. https://static.googleusercontent.com/media/research.google.com/en//archive/gfs-sosp2003.pdf (opens in a new tab) ↩1 ↩2 ↩3
  7. Jeffrey Dean and Sanjay Ghemawat, “MapReduce: Simplified Data Processing on Large Clusters”, OSDI 2004. https://static.googleusercontent.com/media/research.google.com/en//archive/mapreduce-osdi04.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  8. Fay Chang et al., “Bigtable: A Distributed Storage System for Structured Data”, OSDI 2006. https://static.googleusercontent.com/media/research.google.com/en//archive/bigtable-osdi06.pdf (opens in a new tab) ↩1 ↩2
  9. Giuseppe DeCandia et al., “Dynamo: Amazon’s Highly Available Key-value Store”, SOSP ‘07, Stevenson, Washington, 14-17 October 2007. https://www.allthingsdistributed.com/files/amazon-dynamo-sosp2007.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  10. Seth Gilbert and Nancy Lynch, “Brewer’s Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services”, ACM SIGACT News 33(2), June 2002 (author-hosted copy). https://www.comp.nus.edu.sg/~gilbert/pubs/BrewersConjecture-SigAct.pdf (opens in a new tab) ↩1 ↩2 ↩3
  11. Seth Gilbert and Nancy Lynch, “Perspectives on the CAP Theorem”, Computer 45(2), February 2012, pp. 30-36. https://groups.csail.mit.edu/tds/papers/Gilbert/Brewer2.pdf (opens in a new tab) ↩
  12. Eric Brewer, “CAP Twelve Years Later: How the Rules Have Changed”, first published in Computer magazine, reprinted by InfoQ, 30 May 2012. https://www.infoq.com/articles/cap-twelve-years-later-how-the-rules-have-changed/ (opens in a new tab) ↩1 ↩2
  13. Matei Zaharia et al., “Resilient Distributed Datasets: A Fault-Tolerant Abstraction for In-Memory Cluster Computing”, 9th USENIX Symposium on Networked Systems Design and Implementation (NSDI 12), San Jose, April 2012, pp. 15-28. https://www.usenix.org/system/files/conference/nsdi12/nsdi12-final138.pdf (opens in a new tab) ↩1 ↩2 ↩3
  14. Jay Kreps, Neha Narkhede and Jun Rao, “Kafka: a Distributed Messaging System for Log Processing”, NetDB ‘11, Athens, 12 June 2011 (copy on a personal site). https://notes.stephenholiday.com/Kafka.pdf (opens in a new tab) ↩1 ↩2
  15. Apache Kafka documentation, “Design”, section on message delivery semantics (exactly once). https://kafka.apache.org/30/design/design/ (opens in a new tab) ↩1 ↩2
  16. Jay Kreps, “The Log: What every software engineer should know about real-time data’s unifying abstraction”, LinkedIn Engineering, posted 16 December 2013 (Internet Archive capture of 3 February 2015). https://web.archive.org/web/20150203061524/http://engineering.linkedin.com/distributed-systems/log-what-every-software-engineer-should-know-about-real-time-datas-unifying (opens in a new tab) ↩
  17. D. Sculley et al., “Hidden Technical Debt in Machine Learning Systems”, Advances in Neural Information Processing Systems 28 (NIPS 2015). https://papers.nips.cc/paper_files/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf (opens in a new tab) ↩1 ↩2
  18. Timnit Gebru et al., “Datasheets for Datasets”, arXiv:1803.09010v8, 1 December 2021; published online 19 November 2021 and in the December 2021 issue of Communications of the ACM 64(12), pp. 86-92, DOI 10.1145/3458723 (Crossref record). https://arxiv.org/pdf/1803.09010v8 (opens in a new tab) ↩1 ↩2
  19. Latanya Sweeney, “k-anonymity: a model for protecting privacy”, International Journal on Uncertainty, Fuzziness and Knowledge-based Systems 10(5), 2002, pp. 557-570. https://dataprivacylab.org/dataprivacy/projects/kanonymity/kanonymity.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  20. Philippe Golle, “Revisiting the Uniqueness of Simple Demographics in the US Population”, Workshop on Privacy in the Electronic Society, 2006. https://crypto.stanford.edu/~pgolle/papers/census.pdf (opens in a new tab) ↩
  21. Latanya Sweeney, “Simple Demographics Often Identify People Uniquely”, Carnegie Mellon University Data Privacy Working Paper 3, 2000. https://dataprivacylab.org/projects/identifiability/paper1.pdf (opens in a new tab) ↩
  22. Ashwin Machanavajjhala, Johannes Gehrke, Daniel Kifer and Muthuramakrishnan Venkitasubramaniam, “ℓ-Diversity: Privacy Beyond k-Anonymity”, 22nd International Conference on Data Engineering (ICDE), 2006. https://personal.utdallas.edu/~muratk/courses/privacy08f_files/ldiversity.pdf (opens in a new tab) ↩
  23. Arvind Narayanan and Vitaly Shmatikov, “Robust De-anonymization of Large Datasets (How to Break Anonymity of the Netflix Prize Dataset)”, arXiv:cs/0610105v2, 22 November 2007; the shorter IEEE Symposium on Security and Privacy 2008 article, pp. 111-125, is titled “Robust De-anonymization of Large Sparse Datasets”. https://arxiv.org/pdf/cs/0610105v2 (opens in a new tab) ↩1 ↩2 ↩3
  24. Cynthia Dwork, Frank McSherry, Kobbi Nissim and Adam Smith, “Calibrating Noise to Sensitivity in Private Data Analysis”, 2006 (author-hosted full text). https://people.csail.mit.edu/asmith/PS/sensitivity-tcc-final.pdf (opens in a new tab) ↩
  25. Cynthia Dwork and Aaron Roth, “The Algorithmic Foundations of Differential Privacy”, Foundations and Trends in Theoretical Computer Science 9(3-4), 2014, pp. 211-407, Definitions 2.4, 3.1-3.3, Theorems 3.6 and 3.14, Proposition 2.1. https://www.cis.upenn.edu/~aaroth/Papers/privacybook.pdf (opens in a new tab) ↩1 ↩2
  26. John M. Abowd et al., “A Simulated Reconstruction and Reidentification Attack on the 2010 U.S. Census: Full Technical Report”, US Census Bureau working paper CES-23-63, December 2023. https://www.census.gov/library/working-papers/2023/adrm/CES-WP-23-63.html (opens in a new tab) ↩
  27. US Census Bureau, “Disclosure Avoidance for the 2020 Census: An Introduction”, 2 November 2021, including Technical Appendix A. https://www2.census.gov/library/publications/decennial/2020/2020-census-disclosure-avoidance-handbook.pdf (opens in a new tab) ↩
  28. US Census Bureau, “Census Bureau Sets Key Parameters to Protect Privacy in 2020 Census Results”, 9 June 2021. https://www.census.gov/newsroom/press-releases/2021/2020-census-key-parameters.html (opens in a new tab) ↩
  29. US Census Bureau, “Understanding Differential Privacy” (page carrying a notice that it is no longer current) and “Decennial Census of Population and Housing Disclosure Avoidance” (page last revised 9 September 2026). https://www.census.gov/programs-surveys/decennial-census/decade/2020/planning-management/process/disclosure-avoidance/differential-privacy.html (opens in a new tab) and https://www.census.gov/programs-surveys/decennial-census/decade/2020/planning-management/process/disclosure-avoidance.html (opens in a new tab) ↩
  30. George M. Cook, “Understanding the New Disclosure Avoidance Policy: What It Means for Data, Confidentiality and You”, US Census Bureau, 17 August 2026. https://www.census.gov/newsroom/blogs/director/2026/08/understanding-the-new-disclosure-avoidance-policy.html (opens in a new tab) ↩
  31. Wiz Research, “38TB of data accidentally exposed by Microsoft AI researchers”, Wiz blog, September 2023 (the finder’s own account). https://www.wiz.io/blog/38-terabytes-of-private-data-accidentally-exposed-by-microsoft-ai-researchers (opens in a new tab) ↩
  32. Microsoft Security Response Center, “Microsoft mitigated exposure of internal information in a storage account due to overly-permissive SAS token”, 18 September 2023 (Internet Archive capture of 20 September 2023). https://web.archive.org/web/20230920235447/https://msrc.microsoft.com/blog/2023/09/microsoft-mitigated-exposure-of-internal-information-in-a-storage-account-due-to-overly-permissive-sas-token/ (opens in a new tab) ↩
  33. Microsoft Learn, “Grant limited access to Azure Storage resources using shared access signatures (SAS)”: “It’s not possible to audit the generation of SAS tokens.” https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview/ (opens in a new tab) ↩1 ↩2
  34. Ruoming Pang et al., “Zanzibar: Google’s Consistent, Global Authorization System”, 2019 USENIX Annual Technical Conference, Renton, 10-12 July 2019. https://www.usenix.org/system/files/atc19-pang.pdf (opens in a new tab) ↩1 ↩2
  35. Crossref registry records for the DOIs listed, for example https://api.crossref.org/works/10.1145/362384.362685 (opens in a new tab) (Codd 1970) and https://api.crossref.org/works/10.1145/564585.564601 (opens in a new tab) (Gilbert and Lynch 2002). ↩