Moving boundaries around a fixed call graph

A shop application contains six components: Receive accepts orders, Price calculates prices, Check checks stock, Reserve reserves stock, Invoice creates invoices, and Receipt sends receipts. The diagram shows every direct call between these components.


A cross-boundary dependency is a listed call whose caller and called component belong to different modules. Count each arrow once, regardless of how often the call runs. Calls within a module do not contribute to this count.


Six software components are connected by eight directed call arrows.


Consider two layouts. Every component belongs to exactly one module, and all calls are permitted by each layout's interfaces.


Layout

First module

Second module

A

Receive, Price, Invoice, Receipt

Check, Reserve

B

Receive, Check, Reserve

Price, Invoice, Receipt


Find the number of cross-boundary dependencies in Layout A and in Layout B. Give each count as an exact integer.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Modularity Questions: