The Art of Immutable Architecture: Theory and Practice of Data Management in Distributed Systems

Perry, Michael L.

  • 出版商: Apress
  • 出版日期: 2024-05-29
  • 售價: $2,070
  • 貴賓價: 9.5$1,967
  • 語言: 英文
  • 頁數: 480
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868802874
  • ISBN-13: 9798868802874
  • 海外代購書籍(需單獨結帳)

商品描述

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 you 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 of the book, 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 aswe expand to multiple devices, shared experiences, and cloud computing, they work against us. It is time for a new set of assumptions. 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

Who 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.


商品描述(中文翻譯)

這本書教你如何從不可變物件的角度評估分散式系統。你將了解現有設計中的問題,知道如何進行小的修改來解決這些問題,並學習將不可變架構的原則應用於你的工具中。

大多數軟體元件關注物件的狀態。它們將關聯式資料庫中的一行的當前狀態儲存起來。它們追蹤狀態隨時間的變化,並基於幾個基本假設進行操作:每個物件都有一個單一的最新版本,物件的狀態按順序變化,並且存在一個記錄系統。

在建立分散式系統時,這是一個挑戰。無論是處理自治微服務還是斷開連接的移動應用程式,我們嘗試解決的許多問題都歸結為在孤立的元件之間同步不斷變化的狀態。如果物件無法更改,建立分散式系統將變得更容易。

閱讀完《不可變架構的藝術》後,你將了解在你自己的分散式系統中使用不可變物件的好處。你將學習一套規則,用於識別和交換不可變物件,並看到一系列有用的定理,確保你所建立的分散式系統最終是一致的。通過模式,你將找到真理的匯聚點,看到變化是關聯的,而不是順序的,並且開始感到舒適,理解不再有單一的真理來源。實際的實例將強化如何使用所描述的模式、技術和工具來建立軟體。在閱讀完本書後,你將具備分析和構建分散式系統所需的語言和資源。

過去的假設足以建立單用戶、單電腦系統。但隨著我們擴展到多個設備、共享體驗和雲端運算,這些假設反而阻礙了我們。是時候建立一套新的假設了。從不可變物件開始,建立更好的分散式系統。

你將學到什麼:
- 從不可變物件的角度評估分散式系統
- 辨識現有設計中的問題,並進行小的修改來修正它們
- 從頭開始建立一個新系統,應用模式
- 將不可變架構的原則應用於你已經使用的工具,包括 SQL 資料庫、訊息佇列和網路協定
- 發現原生應用這些原則的新工具

本書適合軟體架構師和高級開發人員閱讀。其中包含 SQL 和 JavaScript、C# 等語言的範例。具備分散式運算、資料建模或業務分析的經驗將有所幫助。

作者簡介

Michael L. Perry is Director of Consulting at Improving, where he applies his love of software mathematics to benefit his clients. He has built upon the works of mathematicians such as Marc Shapiro, Pat Helland, and Leslie Lamport to develop a mathematical system for software development. He has captured this system in the Jinaga open source project. Michael often presents on math and software at events and online. You can find out more at michaelperry.net.


作者簡介(中文翻譯)

Michael L. Perry是Improving公司的諮詢總監,他將對軟體數學的熱愛應用於幫助客戶。他在數學家Marc Shapiro、Pat Helland和Leslie Lamport的研究基礎上,開發了一個軟體開發的數學系統,並將其應用於Jinaga開源項目中。Michael經常在活動和網上演講數學和軟體相關的主題。您可以在michaelperry.net獲得更多資訊。