Real-World Event Sourcing
暫譯: 實際應用事件來源技術

Hoffman, Kevin

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2025-04-22
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 202
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798888651063
  • ISBN-13: 9798888651063
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Reality is event-sourced; your mind processes sight, sound, taste, smell, and touch to create its perception of reality. Software isn't that different. Applications use streams of incoming data to create their own realities, and when you interpret that data as events containing state and context, even some of the most complex problems become easily solvable. Unravel the theory behind event sourcing and discover how to put this approach into practice with practical, hands-on coding examples. From early-stage development through production and release, you'll unlock powerful new ways of clearing even the toughest programming hurdles.

Our applications are bombarded with data. It's hard enough to derive state from that data, let alone discover how we arrived at that state. With event sourcing you can treat the stream of data as a simple sequence of events that you use to construct whatever state you need. Event sourcing is more than events; it adds patterns, rules, and constraints to produce robust and easy-to-maintain systems. In this book, you'll learn which rules can never be broken and which ones are flexible. By grounding yourself in theory, rules, and practical approaches, you'll be able to build real-world, event-sourced applications.

Get your hands dirty with fundamental event-sourcing building blocks such as commands, aggregates, projectors, process managers, injectors, and notifiers. Combine these building blocks to produce elegant solutions to complex problems. Leave "hello world" far behind as you tackle the more advanced aspects of event sourcing that give you the confidence you need to run these applications in production. Leverage event sourcing to create distributed applications with ease; model and handle failure; and deal with replays, schema evolution, security, and much more.

This book doesn't shy away from confronting the hard parts of event sourcing, instead giving you clear advice and examples for tackling the most difficult details.

Empower your applications with the full force of event sourcing today.

What You Need:

You'll need a computer preferably running MacOS, Linux, or WSL/Ubuntu on Windows. You'll install everything else you need (such as Elixir and an event store) as you progress through the book.

商品描述(中文翻譯)

現實是事件驅動的;你的大腦處理視覺、聽覺、味覺、嗅覺和觸覺,以創造對現實的感知。軟體並沒有太大不同。應用程式使用不斷進來的數據流來創造它們自己的現實,當你將這些數據解釋為包含狀態和上下文的事件時,即使是一些最複雜的問題也變得容易解決。揭開事件驅動的理論,並發現如何通過實用的實作範例將這種方法付諸實踐。從早期開發到生產和發布,你將解鎖強大的新方法,克服即使是最艱難的程式設計障礙。

我們的應用程式受到數據的轟炸。從這些數據中推導出狀態已經夠困難,更不用說發現我們是如何達到該狀態的。使用事件驅動,你可以將數據流視為一系列簡單的事件,利用這些事件來構建所需的任何狀態。事件驅動不僅僅是事件;它還添加了模式、規則和約束,以產生穩健且易於維護的系統。在這本書中,你將學習哪些規則是絕對不能打破的,哪些則是靈活的。通過扎根於理論、規則和實用方法,你將能夠構建真實世界的事件驅動應用程式。

動手實作基本的事件驅動構建塊,例如命令、聚合、投影器、流程管理器、注入器和通知器。將這些構建塊結合起來,為複雜問題提供優雅的解決方案。當你處理事件驅動的更高級方面時,將「hello world」遠遠拋在腦後,這將給你在生產環境中運行這些應用程式所需的信心。利用事件驅動輕鬆創建分散式應用程式;建模和處理故障;以及處理重播、架構演進、安全性等等。

這本書不會迴避事件驅動的困難部分,而是為你提供清晰的建議和範例,以應對最棘手的細節。

今天就用事件驅動的全部力量來賦能你的應用程式。

你需要的:
你需要一台最好運行 MacOS、Linux 或 Windows 上的 WSL/Ubuntu 的電腦。隨著你在書中的進展,你將安裝所需的其他所有工具(例如 Elixir 和事件存儲)。