Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
Results Page:  Previous Next
Author Perry, Michael L.

Title The art of immutable architecture : theory and practice of data management in distributed systems / Michael L. Perry. [O'Reilly electronic resource]

Imprint [United States] : Apress, 2020.
QR Code
Description 1 online resource
text file PDF rda
Contents Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Acknowledgments -- Introduction -- Part I: Definition -- Chapter 1: Why Immutable Architecture -- The Immutability Solution -- The Problems with Immutability -- Begin a New Journey -- The Fallacies of Distributed Computing -- The Network Is Not Reliable -- Latency Is Not Zero -- Topology Doesn't Change -- Changing Assumptions -- Immutability Changes Everything -- Shared Mutable State -- Structural Sharing -- The Two Generals' Problem -- A Prearranged Protocol -- Reducing the Uncertainty -- An Additional Message
Proof of Impossibility -- Relaxing Constraints -- Redefining the Problem -- Decide and Act -- Accept the Truth -- A Valid Protocol -- Examples of Immutable Architectures -- Git -- Blockchain -- Docker -- Chapter 2: Forms of Immutable Architecture -- Deriving State from History -- Historical Records -- Building Upon the Past -- Evolution of Understanding -- Mutable Objects -- Identity -- Evolution of State -- Projections -- Two Kinds of State -- Projecting Objects -- Event Sourcing -- Generating Events -- CQRS -- DDD -- Taking a Functional View -- Commutative and Idempotent Events
Asynchronous Model View Update -- The Update Loop -- Unidirectional Data Flow -- Immutable App Architecture -- Historical Modeling -- Partial Order -- Predecessors -- Successors -- Immutable Graphs -- Collaboration -- Acyclic Graphs -- Timeliness -- Limitations of Historical Modeling -- No Central Authority -- No Real-Time Clock -- No Uniqueness Constraints -- No Aggregation -- Chapter 3: How to Read a Historical Model -- Fact Type Graphs -- A Chess Game -- Important Attributes -- A Chain of Facts -- Endgame -- Fact Instance Graphs -- The Immortal Game -- Collecting Moves -- A Brilliant Win
The Factual Modeling Language -- Declaring Fact Types -- Querying the Model -- Jumping Levels -- Joining Matches -- Existential Quantifiers -- Current Value -- Authorization Rules -- A Chess Application -- Use Cases -- User Interface -- Actions -- Views -- Part II: Application -- Chapter 4: Location Independence -- Modeling with Immutability -- Synchronization -- Exploring Contracts -- Identity -- Auto-incremented IDs -- Environment Dependence -- Parent-Child Insertion -- Remote Creation -- URLs -- Location-Independent Identity -- Natural Keys -- GUIDs -- Timestamps -- Tuples -- Hashes
Public Keys -- Random Numbers -- Causality -- Putting Steps in Order -- The Transitive Property -- Concurrency -- Partial Order -- The CAP Theorem -- Defining CAP -- Proving the CAP Theorem -- Test an Algorithm -- Eventual Consistency -- Kinds of Consistency -- Strong Eventual Consistency in a Relay-Based System -- Idempotence and Commutativity -- Deriving Strong Eventual Consistency -- The Contact Management System -- Replaying History -- Conflict-Free Replicated Data Types (CRDTs) -- State-Based CRDTs -- Partially Ordered State -- Causal History -- Vector Clocks -- A History of Facts -- Sets
Summary This book teaches you how to evaluate a distributed system from the perspective of immutable objects. You will understand the problems in existing designs, know how to make small modifications to correct those problems, and learn to apply the principles of immutable architecture to your tools. Most software components focus on the state of objects. They store the current state of a row in a relational database. They track changes to state over time, making several basic assumptions: there is a single latest version of each object, the state of an object changes sequentially, and a system of record exists. This is a challenge when it comes to building distributed systems. Whether dealing with autonomous microservices or disconnected mobile apps, many of the problems we try to solve come down to synchronizing an ever-changing state between isolated components. Distributed systems would be a lot easier to build if objects could not change. After reading The Art of Immutable Architecture, you will come away with an understanding of the benefits of using immutable objects in your own distributed systems. You will learn a set of rules for identifying and exchanging immutable objects, and see a collection of useful theorems that emerges and ensures that the distributed systems we build are eventually consistent. Using patterns, you will find where the truth converges, see how changes are associative, rather than sequential, and come to feel comfortable understanding that there is no longer a single source of truth. Practical hands-on examples reinforce how to build software using the described patterns, techniques, and tools. By the end, you will possess the language and resources needed to analyze and construct distributed systems with confidence. The assumptions of the past were sufficient for building single-user, single-computer systems. But as we expand to multiple devices, shared experiences, and cloud computing, they work against us. It is time for a new set of assu mptions. Start with immutable objects, and build better distributed systems. What You Will Learn: Evaluate a distributed system from the perspective of immutable objects Recognize the problems in existing designs, and make small modifications to correct them Start a new system from scratch, applying patterns Apply the principles of immutable architecture to your tools, including SQL databases, message queues, and the network protocols that you already use Discover new tools that natively apply these principles This book is for software architects and senior developers. It contains examples in SQL and languages such as JavaScript and C#. Past experience with distributed computing, data modeling, or business analysis is helpful. Michael L. Perry has built upon the works of mathematicians such as Bertrand Meyer, Leslie Lamport, and Donald Knuth to develop a mathematical system for software development. He has captured this system in a set of open source projects. Michael often presents on math and software at events and online. You can find out more at qedcode.com.
Bibliography Includes bibliographical references and index.
Subject Database management.
Electronic data processing -- Distributed processing.
Computer programming.
Bases de données -- Gestion.
Traitement réparti.
Programmation (Informatique)
computer programming.
Electronic data processing -- Distributed processing
Database management
Computer programming
Software engineering
Other Form: Print version: Perry, Michael L. Art of immutable architecture. [United States] : Apress, 2020 1484259548 9781484259542 (OCoLC)1145595923
ISBN 9781484259559 (electronic bk.)
1484259556 (electronic bk.)
Standard No. 10.1007/978-1-4842-5955-9 doi
10.1007/978-1-4842-5
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information