All challenges
Multiple ChoiceIntermediate 45s

Clean architecture dependency rule

Which is the single most important rule of Clean/Onion architecture?
Options
  1. 1All layers may depend on the database layer. Persistence is the foundation everything builds on.
  2. 2Source-code dependencies point inward toward the domain; inner layers know nothing of outer ones
  3. 3The domain may import framework annotations freely. Those imports do not count as outward dependencies.
  4. 4Outer layers must never call inner layers. Control always originates in the innermost domain.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle