Expand ↗
Page list (1268)

Relational Transducers for Declarative Networking

Reference: Ameloot, T.J., Neven, F. & Van den Bussche, J. (2011). Proceedings of the 30th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS ’11), pp. 13–24, Athens. DOI: 10.1145/1989284.1989321. Journal version: Journal of the ACM 60(2):15, 2013, DOI: 10.1145/2450142.2450151. arXiv:1012.2858 [cs.DB]. Source file: ameloot-neven-vandenbussche-pods11.pdf. URL

Summary

Ameloot, Neven and Van den Bussche supply the formal proof of the conjecture that came to be known as the CALM theoremConsistency As Logical Monotonicity. They propose a precise computation model for “eventually consistent” distributed querying based on relational transducer networks: each node is a relational transducer (a finite-state machine over relations) with input, output, send, receive, and memory relations; a network of such transducers exchanges tuples asynchronously over an unreliable but eventually-delivering channel. Within this model they give formal definitions of three properties that had previously been informal: eventual consistency (every fair run converges to the same output), coordination-freeness (no node ever waits for another node’s input before producing output), and obliviousness (a syntactic restriction on transducer programs that forbids inspection of the network state).

The paper’s main result is a tight characterisation: the queries computable by coordination-free transducer networks are exactly the monotone queries, and the syntactic class of oblivious transducers also captures exactly the monotone queries. Coordination is therefore necessary for non-monotone queries — the negative side of the result — and sufficient for any computable query, since transducer networks that are not coordination-free are Turing-complete. This is the theorem that Keeping CALM - When Distributed Consistency is Easy (Hellerstein & Alvaro 2019) presents in its accessible form, and the formal kernel that lattice-typed languages like BloomL exploit for their static monotonicity guarantees.

Key Ideas

  • Relational transducer networks: each node a finite-state relational machine with input/output/send/receive/memory relations; communication asynchronous and unordered but eventually-delivering.
  • Eventual consistency, formally: every fair run converges to the same output; orthogonal to the order in which messages are delivered.
  • Coordination-freeness, formally: at no point does a node block waiting on input from another node before emitting output for which it has the data.
  • Obliviousness: a syntactic restriction (transducer rules cannot inspect “network state” predicates) that captures coordination-freeness without referring to runtime behaviour.
  • Main theorem: the class of queries computable by coordination-free (equivalently, oblivious) transducer networks is exactly the class of monotone queries. Non-monotone queries require coordination.
  • Power of coordination: transducer networks that are allowed to coordinate are Turing-complete — coordination buys arbitrary computational power, monotonicity buys distribution-friendliness.

Connections

Conceptual Contribution

  • Claim: A distributed query is computable in a coordination-free, eventually-consistent way if and only if it is monotone — and the syntactic class of oblivious relational transducers captures exactly this monotone fragment, giving a structural rather than runtime characterisation of which programs admit coordination-free distributed implementation.
  • Mechanism: Formalise distributed querying as a network of relational transducers exchanging tuples over an asynchronous, unordered, eventually-delivering channel; define eventual consistency, coordination-freeness, and obliviousness as crisp properties of runs/programs respectively; prove the biconditional monotone-query ⇔ coordination-free transducer network ⇔ oblivious transducer program via constructions in both directions; show that lifting the coordination-freeness restriction makes transducer networks Turing-complete.
  • Concepts introduced/used: Relational Transducer, CALM Theorem, Monotonic Logic, Eventual Consistency, Coordination Avoidance, Confluence, Datalog, oblivious transducer
  • Stance: foundational / theoretical
  • Relates to: The formal kernel that Keeping CALM - When Distributed Consistency is Easy (Hellerstein & Alvaro 2019) elaborates into the contemporary CALM-theorem narrative — Hellerstein-Alvaro is the manifesto, this is the theorem. Pairs structurally with Verifiable Semantics for ACLs (Wooldridge 1998) in the agent-communication tradition: both are theorems that turn long-running informal claims (Singh’s “social agency is testable”, Hellerstein-Alvaro’s “distributed consistency is easy when monotonic”) into precise decidability/expressivity results. Companion to Logic and Lattices for Distributed Programming (Conway et al. 2012), which gives the language in which monotonicity is statically checkable, and to A Comprehensive Study of Convergent and Commutative Replicated Data Types (Shapiro et al. 2011), which gives the data structures (CRDTs) that natively live in the monotone class. Load-bearing reference for CBCL - Safe Self-Extending Agent Communication’s SPEC-003: causal-protocol verification is monotone, hence (by this theorem) coordination-free across replicas.

Tags

#distributed-systems #foundations #monotonic-logic #relational-transducers #coordination-freeness #calm #datalog #theory

Backlinks