← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

57 原书第07章|Pause for Refactoring: An Alternative Design of the Cargo Aggregate

核验版本的摘录快照 · 导入于 2026-11-14T03:12:56.393Z

for the status of a Cargo until it arrives, then a lot of unneeded work will be avoided altogether.

On the other hand, if we are using an object database, traversing an association or an explicit collection is probably much faster than a REPOSITORY query. If the access pattern includes frequent listing of the full history, rather than the occasional targeted query of last position, the performance trade-off might favor the explicit collection.

And remember that the added feature ("What is on this Carrier Movement?") hasn't been requested yet

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch07lev1sec9.html

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce