Multiple ChoiceIntermediate 45s
DIP: direction of dependency arrows
In a hexagonal architecture, the domain defines a PaymentGateway port and the infrastructure provides a Stripe adapter. Which dependency direction is correct?
Options
- 1Infrastructure depends on the domain port; domain knows nothing of Stripe
- 2Domain depends on the Stripe SDK so it can call it directly
- 3Both depend on a shared third module that imports both
- 4Domain depends on infrastructure interfaces defined inside the Stripe package
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.