Counting dependencies permitted by layering policies

A booking application has four layers in the order shown. Its team is comparing two dependency policies. Under strict layering, a layer may call only the layer immediately below it. Under relaxed layering, a layer may call any lower layer. Both policies forbid upward calls and calls within the same layer for this comparison.


Four application layers are stacked from Presentation at the top to Storage at the bottom.


For each layer, enter the number of other layers permitted to call it directly under each policy. Then enter the total number of permitted directed dependencies across the whole application. Count direct calls only; reaching a layer through an intermediary does not make the original caller a direct caller. Give exact integers.

Receiving layer or totalStrict policyRelaxed policy
Presentation
Application
Domain
Storage
Total permitted directed dependencies

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 Architectural Patterns Questions: