Errata

Architecture Patterns with Python

Errata for Architecture Patterns with Python

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page Chapter 11, Section 'Our New Outgoing Event', Page 171
Last paragraph

In chapter 10, HANDLERS dictionary is transformed to two dictionaries: COMMAND_HANDLERS and EVENT_HANDLERS.
On this page, HANDLERS is used again. It should be changed to EVENT_HANDLERS.
Chapter 11 branch on Github confirms this.

Mojtaba Mir Yaghoobzadeh  May 06, 2023 
Printed Page 14
test code in the middle of the page

In the test_allocation_is_idempotent() function
I think the batch.allocate(line) called accidentally twice
either remove one call or change the assert to 16

Kostas Vogiatzis  Jun 26, 2022 
Printed Page 28
Top of page, orm.py class OrderLine

-qty = Integer(String(250))
+qty = Column(Integer())

The line was probably copied from the previous line for 'sku' but insted of changing 'String' into 'Integer' 'Column' was replaced by mistake.

Philipp Hahn   Jan 22, 2023 
Printed Page 49
Code example

At the beginning of the method, a variable named source_hashes is created. A few lines down, it referred to as src_hashes. Not a big deal, but it did throw me off for a second.

Sandeep Gill  May 02, 2022 
Mobi Page 199
Exercise for the reader: class FakeMessageBus()

self.handlers = …
Instance attribute handlers should be capitalized for the parent class‘ method „handle()“ to work:
self.HANDLERS = …

Christopher Graf  Jan 29, 2022 
Mobi Page 246
Box: Rebuilding from scratch

„add_allocate_to_read_model“ should be „add_allocation_to_read_model“

Christopher Graf  Jan 30, 2022