arXiv Science⌕ Search

arXiv subjects

Devora Chait-Roth

Publications and source records attributed to Devora Chait-Roth.

3 recordsLinked to original sources

Composing Updates in Time and Space

Scalable software services are expected to be always available. Hence, service software must be updated on the fly, while the service continues to function. The central challenge for on-the-fly update is to ensure the absence of observable, destructive interference between current- and new-version components, whose inconsistencies may lead to unexpected outcomes and catastrophic service failures. This work proposes new theoretical foundations for modular, consistent, on-the-fly updates for networks of processes. In a process network, updates to one component may cause destructive interference at a distant, non-updating component. We introduce coherence, a causality-based formulation of update consistency that guarantees a clear separation between old- and new-version transactions. We establish through an impossibility result that myopic update strategies, which observe and control only the updating components, are insufficient for consistency. This result leads to an isolation principle that cleanly separates a core, controlled update strategy from surrounding uncontrolled network activity, which enables modular reasoning about sequential and even concurrent updates. Applying this principle to microservice networks, we show how consistent update strategies for the full network can be constructed from strategies for updating isolated microservices based on compatibility and commutativity properties of the microservice actions.

cs.PL↗

Consistent Updates for Scalable Microservices

Online services are commonly implemented with a scalable microservice architecture, where isomorphic workers process client requests, recording persistent state in a backend data store. To maintain service, modifications to service functionality must be made on the fly -- i.e., as the service continues to process client requests -- but doing so is challenging. The central difficulty is that of avoiding inconsistencies from mixed-mode operation, caused by workers of current and new versions interacting via the data store. Some update methods avoid mixed-mode altogether, but only at the cost of substantial inefficiency -- by doubling resources (memory and compute), or by halving throughput. The alternative is an uncontrolled ``rolling'' update, which runs the risk of serious service failures arising from inconsistent mixed-mode behavior. Ideally, it should appear to every client that a service update takes effect atomically; this ensures that a client is not exposed to inconsistent mixed-mode behavior. In this paper, we introduce a framework that formalizes this intuition and develop foundational theory for reasoning about update consistency. We apply this theory to derive the first algorithms that guarantee consistency for mixed-mode updates. The algorithms rely on semantic properties of service actions, such as commutativity. We show that this is unavoidable, by proving that any semantically oblivious mixed-mode update method must allow inconsistencies.

cs.PL↗

Constructing Trustworthy Smart Contracts

Smart contracts form the core of Web3 applications. Contracts mediate the transfer of cryptocurrency, making them irresistible targets for hackers. We introduce ASP, a system aimed at easing the construction of provably secure contracts. The Asp system consists of three closely-linked components: a programming language, a defensive compiler, and a proof checker. The language semantics guarantee that Asp contracts are free of commonly exploited vulnerabilities such as arithmetic overflow and reentrancy. The defensive compiler enforces the semantics and translates Asp to Solidity, the most popular contract language. Deductive proofs establish functional correctness and freedom from critical vulnerabilities such as unauthorized access.

cs.CR↗